import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);

		int n = scanner.nextInt();
		int m = scanner.nextInt();
		int l = scanner.nextInt();
		
		int[][] A; 
		A = new int[n][m];
		int[][] B;
		B =new int[m][l];
		long[][]C;
		C = new long[n][l];
		
		
		
		for(int i=0;i<n;i++){
			for(int f=0;f<m;f++){
				int a = scanner.nextInt();
				A[i][f]=a;	
			}
		}
		
		for(int i=0;i<m;i++){
			for(int f=0;f<l;f++){
				int b = scanner.nextInt();
				B[i][f]= b;	
			}
		}
		
		for(int i=0;i<n;i++){
			for(int j=0;j<l;j++){
				for(int k=0;k<m;k++){
					C[i][j]=C[i][j]+(A[i][k]*B[k][j]);
					
				}
				
				System.out.print(C[i][j]);
				if(!(j == l-1)){
					System.out.print(" ");
				}
			}
			System.out.println("");
		}

		scanner.close();
	}
}
 import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);

		int n = scanner.nextInt();
		int m = scanner.nextInt();
		int l = scanner.nextInt();
		
		int[][] A; 
		A = new int[n][m];
		int[][] B;
		B =new int[m][l];
		long[][]C;
		C = new long[n][l];
		
		
		
		for(int i=0;i<n;i++){
			for(int f=0;f<m;f++){
				int a = scanner.nextInt();
				A[i][f]=a;	
			}
		}
		
		for(int i=0;i<m;i++){
			for(int f=0;f<l;f++){
				int b = scanner.nextInt();
				B[i][f]= b;	
			}
		}
		
		for(int i=0;i<n;i++){
			for(int j=0;j<l;j++){
				for(int k=0;k<m;k++){
					C[i][j]=C[i][j]+(A[i][k]*B[k][j]);
					
				}
				
				System.out.print(C[i][j]);
				if(!(j == l-1)){
					System.out.print(" ");
				}
			}
			System.out.println("");
		}

		scanner.close();
	}
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);

		int n = scanner.nextInt();
		int m = scanner.nextInt();
		int l = scanner.nextInt();
		
		int[][] A; 
		A = new int[n][m];
		int[][] B;
		B =new int[m][l];
		long[][]C;
		C = new long[n][l];
		
		
		
		for(int i=0;i<n;i++){
			for(int f=0;f<m;f++){
				int a = scanner.nextInt();
				A[i][f]=a;	
			}
		}
		
		for(int i=0;i<m;i++){
			for(int f=0;f<l;f++){
				int b = scanner.nextInt();
				B[i][f]= b;	
			}
		}
		
		for(int i=0;i<n;i++){
			for(int j=0;j<l;j++){
				for(int k=0;k<m;k++){
					C[i][j]=C[i][j]+(A[i][k]*B[k][j]);
					
				}
				
				System.out.print(C[i][j]);
				if(!(j == l-1)){
					System.out.print(" ");
				}
			}
			System.out.println("");
		}

		scanner.close();
	} main {
		Scanner scanner = new Scanner(System.in);

		int n = scanner.nextInt();
		int m = scanner.nextInt();
		int l = scanner.nextInt();
		
		int[][] A; 
		A = new int[n][m];
		int[][] B;
		B =new int[m][l];
		long[][]C;
		C = new long[n][l];
		
		
		
		for(int i=0;i<n;i++){
			for(int f=0;f<m;f++){
				int a = scanner.nextInt();
				A[i][f]=a;	
			}
		}
		
		for(int i=0;i<m;i++){
			for(int f=0;f<l;f++){
				int b = scanner.nextInt();
				B[i][f]= b;	
			}
		}
		
		for(int i=0;i<n;i++){
			for(int j=0;j<l;j++){
				for(int k=0;k<m;k++){
					C[i][j]=C[i][j]+(A[i][k]*B[k][j]);
					
				}
				
				System.out.print(C[i][j]);
				if(!(j == l-1)){
					System.out.print(" ");
				}
			}
			System.out.println("");
		}

		scanner.close();
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int m = scanner.nextInt(); m scanner.nextInt() scanner.nextInt scanner int l = scanner.nextInt(); l scanner.nextInt() scanner.nextInt scanner int[][] A; A A = new int[n][m] A new int[n][m] n m int[][] B; B B =new int[m][l] B new int[m][l] m l long[][]C; C C = new long[n][l] C new long[n][l] n l for(int i=0;i<n;i++){
			for(int f=0;f<m;f++){
				int a = scanner.nextInt();
				A[i][f]=a;	
			}
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			for(int f=0;f<m;f++){
				int a = scanner.nextInt();
				A[i][f]=a;	
			}
		} {
			for(int f=0;f<m;f++){
				int a = scanner.nextInt();
				A[i][f]=a;	
			}
		} for(int f=0;f<m;f++){
				int a = scanner.nextInt();
				A[i][f]=a;	
			} int f=0; int f=0; f 0 f<m f m f++ f++ f {
				int a = scanner.nextInt();
				A[i][f]=a;	
			} {
				int a = scanner.nextInt();
				A[i][f]=a;	
			} int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner A[i][f]=a A[i][f] A[i] A i f a for(int i=0;i<m;i++){
			for(int f=0;f<l;f++){
				int b = scanner.nextInt();
				B[i][f]= b;	
			}
		} int i=0; int i=0; i 0 i<m i m i++ i++ i {
			for(int f=0;f<l;f++){
				int b = scanner.nextInt();
				B[i][f]= b;	
			}
		} {
			for(int f=0;f<l;f++){
				int b = scanner.nextInt();
				B[i][f]= b;	
			}
		} for(int f=0;f<l;f++){
				int b = scanner.nextInt();
				B[i][f]= b;	
			} int f=0; int f=0; f 0 f<l f l f++ f++ f {
				int b = scanner.nextInt();
				B[i][f]= b;	
			} {
				int b = scanner.nextInt();
				B[i][f]= b;	
			} int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner B[i][f]= b B[i][f] B[i] B i f b for(int i=0;i<n;i++){
			for(int j=0;j<l;j++){
				for(int k=0;k<m;k++){
					C[i][j]=C[i][j]+(A[i][k]*B[k][j]);
					
				}
				
				System.out.print(C[i][j]);
				if(!(j == l-1)){
					System.out.print(" ");
				}
			}
			System.out.println("");
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			for(int j=0;j<l;j++){
				for(int k=0;k<m;k++){
					C[i][j]=C[i][j]+(A[i][k]*B[k][j]);
					
				}
				
				System.out.print(C[i][j]);
				if(!(j == l-1)){
					System.out.print(" ");
				}
			}
			System.out.println("");
		} {
			for(int j=0;j<l;j++){
				for(int k=0;k<m;k++){
					C[i][j]=C[i][j]+(A[i][k]*B[k][j]);
					
				}
				
				System.out.print(C[i][j]);
				if(!(j == l-1)){
					System.out.print(" ");
				}
			}
			System.out.println("");
		} for(int j=0;j<l;j++){
				for(int k=0;k<m;k++){
					C[i][j]=C[i][j]+(A[i][k]*B[k][j]);
					
				}
				
				System.out.print(C[i][j]);
				if(!(j == l-1)){
					System.out.print(" ");
				}
			} int j=0; int j=0; j 0 j<l j l j++ j++ j {
				for(int k=0;k<m;k++){
					C[i][j]=C[i][j]+(A[i][k]*B[k][j]);
					
				}
				
				System.out.print(C[i][j]);
				if(!(j == l-1)){
					System.out.print(" ");
				}
			} {
				for(int k=0;k<m;k++){
					C[i][j]=C[i][j]+(A[i][k]*B[k][j]);
					
				}
				
				System.out.print(C[i][j]);
				if(!(j == l-1)){
					System.out.print(" ");
				}
			} for(int k=0;k<m;k++){
					C[i][j]=C[i][j]+(A[i][k]*B[k][j]);
					
				} int k=0; int k=0; k 0 k<m k m k++ k++ k {
					C[i][j]=C[i][j]+(A[i][k]*B[k][j]);
					
				} {
					C[i][j]=C[i][j]+(A[i][k]*B[k][j]);
					
				} C[i][j]=C[i][j]+(A[i][k]*B[k][j]) C[i][j] C[i] C i 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 System.out.print(C[i][j]) System.out.print System.out System System.out C[i][j] C[i] C i j if(!(j == l-1)){
					System.out.print(" ");
				} !(j == l-1) (j == l-1) j l-1 l 1 {
					System.out.print(" ");
				} System.out.print(" ") System.out.print System.out System System.out " " System.out.println("") System.out.println System.out System System.out "" scanner.close() scanner.close scanner String[] args args
import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);

		int n = scanner.nextInt();
		int m = scanner.nextInt();
		int l = scanner.nextInt();
		
		int[][] A; 
		A = new int[n][m];
		int[][] B;
		B =new int[m][l];
		long[][]C;
		C = new long[n][l];
		
		
		
		for(int i=0;i<n;i++){
			for(int f=0;f<m;f++){
				int a = scanner.nextInt();
				A[i][f]=a;	
			}
		}
		
		for(int i=0;i<m;i++){
			for(int f=0;f<l;f++){
				int b = scanner.nextInt();
				B[i][f]= b;	
			}
		}
		
		for(int i=0;i<n;i++){
			for(int j=0;j<l;j++){
				for(int k=0;k<m;k++){
					C[i][j]=C[i][j]+(A[i][k]*B[k][j]);
					
				}
				
				System.out.print(C[i][j]);
				if(!(j == l-1)){
					System.out.print(" ");
				}
			}
			System.out.println("");
		}

		scanner.close();
	}
}

