
import java.util.Scanner;

public class Main {

	    public static void main(String[] args){
	        Scanner scan = new Scanner(System.in);
	        int numN = scan.nextInt();
	        int numM = scan.nextInt();
	        int numL = scan.nextInt();
	        long[][] arrA = new long[numN][numM];
	        long[][] arrB = new long[numM][numL];
	        long[][] arrTot = new long[numN][numL];

	        for(int i=0; i<numN; i++){
	            for(int j=0; j<numM; j++){
	                arrA[i][j] = scan.nextInt();
	            }
	        }

	        for(int i=0; i<numM; i++){
	            for(int j=0; j<numL; j++){
	                arrB[i][j] = scan.nextInt();
	            }
	        }

	        for(int i = 0; i<numN; i++){
	            for(int j=0; j<numL; j++){
	                for(int k = 0; k<numM; k++){
	                	arrTot[i][j] += arrA[i][k]*arrB[k][j];
	                }
	            }
	        }

	        for(int i = 0; i<numN; i++){
	            System.out.print(arrTot[i][0]);
	            for(int j=1;j<numL;j++){
	                System.out.print(" "+arrTot[i][j]);
	        }
	        System.out.println();
	        }

	    }
	}
/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