import java.util.Scanner;

class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		
		int 
			 	n,
				m,
				l;
				
		long[][]
				A,
				B,
				C;
				
		String output;
		
		//入力処理
		n = Integer.parseInt(sc.next());
		m = Integer.parseInt(sc.next());
		l = Integer.parseInt(sc.next());
		
		//サイズの指定
		A = new long[n][m];
		B = new long[m][l];
		C = new long[n][l];
		
		//A行列の入力
		for(int i = 0;i < n;i++){
			
			for(int k = 0;k < m;k++){
				
				A[i][k] = Integer.parseInt(sc.next());
			}
		}
		
		//B行列の入力
		for(int k = 0;k < m;k++){
			
			for(int j = 0;j < l;j++){
				
				B[k][j] = Integer.parseInt(sc.next());
			}
		}
		
		//C行列の計算
		for(int k = 0;k < m;k++){
			
			for(int i = 0;i < n;i++){
				
				for(int j = 0;j < l;j++){
					
					C[i][j] += A[i][k] * B[k][j];
				}
			}
		}
		
		//出力処理
		for(int i = 0;i < n;i++){
			
				output = "";
				
				for(int j = 0;j < l;j++){
					
					output += C[i][j];
					//数字の間にスペースを入れる
					if(j < l - 1)output += " ";
				}
				
				System.out.print(output + "\n");
				
		}
		
	}
}


/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz