import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int l = scan.nextInt();
		long[][] a = new long[n + 1][m + 1];
		long[][] b = new long[m + 1][l + 1];
		long[][] c = new long[n + 1][l + 1];
		int i,j,k;
		for(i = 1; i <= n; ++i){
			for(k = 1; k <= m; ++k){
				a[i][k] = scan.nextInt();
			}
		}
		for(k = 1; k <= m; ++k){
			for(j = 1; j <= l; ++j){
				b[k][j] = scan.nextInt();
			}
		}
		for(i = 1; i <= n; ++i){
			for(j = 1; j <= l; ++j){
				for(k = 1; k <= m; ++k){
					c[i][j] += a[i][k] * b[k][j] ;
				}
			}
				
			}
		for(i = 1; i <= n; ++i){
			for(j = 1; j <= l; ++j){
				if(j == l)
					System.out.println(c[i][j]);
				else 
					System.out.print(c[i][j]+" ");
			}
		}
		}
}
		
		
		


	 import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int l = scan.nextInt();
		long[][] a = new long[n + 1][m + 1];
		long[][] b = new long[m + 1][l + 1];
		long[][] c = new long[n + 1][l + 1];
		int i,j,k;
		for(i = 1; i <= n; ++i){
			for(k = 1; k <= m; ++k){
				a[i][k] = scan.nextInt();
			}
		}
		for(k = 1; k <= m; ++k){
			for(j = 1; j <= l; ++j){
				b[k][j] = scan.nextInt();
			}
		}
		for(i = 1; i <= n; ++i){
			for(j = 1; j <= l; ++j){
				for(k = 1; k <= m; ++k){
					c[i][j] += a[i][k] * b[k][j] ;
				}
			}
				
			}
		for(i = 1; i <= n; ++i){
			for(j = 1; j <= l; ++j){
				if(j == l)
					System.out.println(c[i][j]);
				else 
					System.out.print(c[i][j]+" ");
			}
		}
		}
} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int l = scan.nextInt();
		long[][] a = new long[n + 1][m + 1];
		long[][] b = new long[m + 1][l + 1];
		long[][] c = new long[n + 1][l + 1];
		int i,j,k;
		for(i = 1; i <= n; ++i){
			for(k = 1; k <= m; ++k){
				a[i][k] = scan.nextInt();
			}
		}
		for(k = 1; k <= m; ++k){
			for(j = 1; j <= l; ++j){
				b[k][j] = scan.nextInt();
			}
		}
		for(i = 1; i <= n; ++i){
			for(j = 1; j <= l; ++j){
				for(k = 1; k <= m; ++k){
					c[i][j] += a[i][k] * b[k][j] ;
				}
			}
				
			}
		for(i = 1; i <= n; ++i){
			for(j = 1; j <= l; ++j){
				if(j == l)
					System.out.println(c[i][j]);
				else 
					System.out.print(c[i][j]+" ");
			}
		}
		} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int l = scan.nextInt();
		long[][] a = new long[n + 1][m + 1];
		long[][] b = new long[m + 1][l + 1];
		long[][] c = new long[n + 1][l + 1];
		int i,j,k;
		for(i = 1; i <= n; ++i){
			for(k = 1; k <= m; ++k){
				a[i][k] = scan.nextInt();
			}
		}
		for(k = 1; k <= m; ++k){
			for(j = 1; j <= l; ++j){
				b[k][j] = scan.nextInt();
			}
		}
		for(i = 1; i <= n; ++i){
			for(j = 1; j <= l; ++j){
				for(k = 1; k <= m; ++k){
					c[i][j] += a[i][k] * b[k][j] ;
				}
			}
				
			}
		for(i = 1; i <= n; ++i){
			for(j = 1; j <= l; ++j){
				if(j == l)
					System.out.println(c[i][j]);
				else 
					System.out.print(c[i][j]+" ");
			}
		}
		} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int m = scan.nextInt(); m scan.nextInt() scan.nextInt scan int l = scan.nextInt(); l scan.nextInt() scan.nextInt scan long[][] a = new long[n + 1][m + 1]; a new long[n + 1][m + 1] n + 1 n 1 m + 1 m 1 long[][] b = new long[m + 1][l + 1]; b new long[m + 1][l + 1] m + 1 m 1 l + 1 l 1 long[][] c = new long[n + 1][l + 1]; c new long[n + 1][l + 1] n + 1 n 1 l + 1 l 1 int i i j j k; k for(i = 1; i <= n; ++i){
			for(k = 1; k <= m; ++k){
				a[i][k] = scan.nextInt();
			}
		} i = 1; i = 1 i 1 i <= n i n ++i ++i i {
			for(k = 1; k <= m; ++k){
				a[i][k] = scan.nextInt();
			}
		} {
			for(k = 1; k <= m; ++k){
				a[i][k] = scan.nextInt();
			}
		} for(k = 1; k <= m; ++k){
				a[i][k] = scan.nextInt();
			} k = 1; k = 1 k 1 k <= m k m ++k ++k k {
				a[i][k] = scan.nextInt();
			} {
				a[i][k] = scan.nextInt();
			} a[i][k] = scan.nextInt() a[i][k] a[i] a i k scan.nextInt() scan.nextInt scan for(k = 1; k <= m; ++k){
			for(j = 1; j <= l; ++j){
				b[k][j] = scan.nextInt();
			}
		} k = 1; k = 1 k 1 k <= m k m ++k ++k k {
			for(j = 1; j <= l; ++j){
				b[k][j] = scan.nextInt();
			}
		} {
			for(j = 1; j <= l; ++j){
				b[k][j] = scan.nextInt();
			}
		} for(j = 1; j <= l; ++j){
				b[k][j] = scan.nextInt();
			} j = 1; j = 1 j 1 j <= l j l ++j ++j j {
				b[k][j] = scan.nextInt();
			} {
				b[k][j] = scan.nextInt();
			} b[k][j] = scan.nextInt() b[k][j] b[k] b k j scan.nextInt() scan.nextInt scan for(i = 1; i <= n; ++i){
			for(j = 1; j <= l; ++j){
				for(k = 1; k <= m; ++k){
					c[i][j] += a[i][k] * b[k][j] ;
				}
			}
				
			} i = 1; i = 1 i 1 i <= n i n ++i ++i i {
			for(j = 1; j <= l; ++j){
				for(k = 1; k <= m; ++k){
					c[i][j] += a[i][k] * b[k][j] ;
				}
			}
				
			} {
			for(j = 1; j <= l; ++j){
				for(k = 1; k <= m; ++k){
					c[i][j] += a[i][k] * b[k][j] ;
				}
			}
				
			} for(j = 1; j <= l; ++j){
				for(k = 1; k <= m; ++k){
					c[i][j] += a[i][k] * b[k][j] ;
				}
			} j = 1; j = 1 j 1 j <= l j l ++j ++j j {
				for(k = 1; k <= m; ++k){
					c[i][j] += a[i][k] * b[k][j] ;
				}
			} {
				for(k = 1; k <= m; ++k){
					c[i][j] += a[i][k] * b[k][j] ;
				}
			} for(k = 1; k <= m; ++k){
					c[i][j] += a[i][k] * b[k][j] ;
				} k = 1; k = 1 k 1 k <= m k m ++k ++k k {
					c[i][j] += a[i][k] * b[k][j] ;
				} {
					c[i][j] += a[i][k] * b[k][j] ;
				} c[i][j] += a[i][k] * b[k][j] c[i][j] c[i] c i j a[i][k] * b[k][j] a[i][k] a[i] a i k b[k][j] b[k] b k j for(i = 1; i <= n; ++i){
			for(j = 1; j <= l; ++j){
				if(j == l)
					System.out.println(c[i][j]);
				else 
					System.out.print(c[i][j]+" ");
			}
		} i = 1; i = 1 i 1 i <= n i n ++i ++i i {
			for(j = 1; j <= l; ++j){
				if(j == l)
					System.out.println(c[i][j]);
				else 
					System.out.print(c[i][j]+" ");
			}
		} {
			for(j = 1; j <= l; ++j){
				if(j == l)
					System.out.println(c[i][j]);
				else 
					System.out.print(c[i][j]+" ");
			}
		} for(j = 1; j <= l; ++j){
				if(j == l)
					System.out.println(c[i][j]);
				else 
					System.out.print(c[i][j]+" ");
			} j = 1; j = 1 j 1 j <= l j l ++j ++j j {
				if(j == l)
					System.out.println(c[i][j]);
				else 
					System.out.print(c[i][j]+" ");
			} {
				if(j == l)
					System.out.println(c[i][j]);
				else 
					System.out.print(c[i][j]+" ");
			} if(j == l)
					System.out.println(c[i][j]);
				else 
					System.out.print(c[i][j]+" "); j == l j l System.out.println(c[i][j]) System.out.println System.out System System.out c[i][j] c[i] c i j System.out.print(c[i][j]+" ") System.out.print System.out System System.out c[i][j]+" " c[i][j] c[i] c i j " " String[] args args public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int l = scan.nextInt();
		long[][] a = new long[n + 1][m + 1];
		long[][] b = new long[m + 1][l + 1];
		long[][] c = new long[n + 1][l + 1];
		int i,j,k;
		for(i = 1; i <= n; ++i){
			for(k = 1; k <= m; ++k){
				a[i][k] = scan.nextInt();
			}
		}
		for(k = 1; k <= m; ++k){
			for(j = 1; j <= l; ++j){
				b[k][j] = scan.nextInt();
			}
		}
		for(i = 1; i <= n; ++i){
			for(j = 1; j <= l; ++j){
				for(k = 1; k <= m; ++k){
					c[i][j] += a[i][k] * b[k][j] ;
				}
			}
				
			}
		for(i = 1; i <= n; ++i){
			for(j = 1; j <= l; ++j){
				if(j == l)
					System.out.println(c[i][j]);
				else 
					System.out.print(c[i][j]+" ");
			}
		}
		}
} public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int l = scan.nextInt();
		long[][] a = new long[n + 1][m + 1];
		long[][] b = new long[m + 1][l + 1];
		long[][] c = new long[n + 1][l + 1];
		int i,j,k;
		for(i = 1; i <= n; ++i){
			for(k = 1; k <= m; ++k){
				a[i][k] = scan.nextInt();
			}
		}
		for(k = 1; k <= m; ++k){
			for(j = 1; j <= l; ++j){
				b[k][j] = scan.nextInt();
			}
		}
		for(i = 1; i <= n; ++i){
			for(j = 1; j <= l; ++j){
				for(k = 1; k <= m; ++k){
					c[i][j] += a[i][k] * b[k][j] ;
				}
			}
				
			}
		for(i = 1; i <= n; ++i){
			for(j = 1; j <= l; ++j){
				if(j == l)
					System.out.println(c[i][j]);
				else 
					System.out.print(c[i][j]+" ");
			}
		}
		}
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int l = scan.nextInt();
		long[][] a = new long[n + 1][m + 1];
		long[][] b = new long[m + 1][l + 1];
		long[][] c = new long[n + 1][l + 1];
		int i,j,k;
		for(i = 1; i <= n; ++i){
			for(k = 1; k <= m; ++k){
				a[i][k] = scan.nextInt();
			}
		}
		for(k = 1; k <= m; ++k){
			for(j = 1; j <= l; ++j){
				b[k][j] = scan.nextInt();
			}
		}
		for(i = 1; i <= n; ++i){
			for(j = 1; j <= l; ++j){
				for(k = 1; k <= m; ++k){
					c[i][j] += a[i][k] * b[k][j] ;
				}
			}
				
			}
		for(i = 1; i <= n; ++i){
			for(j = 1; j <= l; ++j){
				if(j == l)
					System.out.println(c[i][j]);
				else 
					System.out.print(c[i][j]+" ");
			}
		}
		}
}
		
		
		


	