import java.util.Scanner;

public class Main {
	private static Scanner sc=new Scanner(System.in);
	private static int n=sc.nextInt();
	private static int m=sc.nextInt();
	private static int l=sc.nextInt();
	private static int[][] a=new int[n][m];
	private static int[][] b=new int[m][l];
	private static long[][] c=new long[n][l];
	public static void main(String[] args){
		for(int i=0;i<n;i++){
			for(int j=0;j<m;j++){
				a[i][j]=sc.nextInt();
			}
		}
		for(int i=0;i<m;i++){
			for(int j=0;j<l;j++){
				b[i][j]=sc.nextInt();
			}
		}
		multiply();
		for(int i=0;i<n;i++){
			for(int k=0;k<l-1;k++){
				System.out.print(c[i][k]+" ");
			}
			System.out.println(c[i][l-1]);
		}
	}
	private static void multiply(){
		for(int i=0;i<n;i++){
			for(int k=0;k<l;k++){
				for(int j=0;j<m;j++){
					c[i][k]+=a[i][j]*b[j][k];
				}
			}
		}
	}
}
/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