
import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int m = in.nextInt();
		int l = in.nextInt();
		long[][] aryA = new long[n][m];
		long[][] aryB = new long[m][l];
		long[][] aryC = new long[n][l];
		
		//????????§?????????????´????????´???????
		for(int i=0; i<n; i++){
			for(int j=0; j<m; j++){
				aryA[i][j] = in.nextInt();
			}
		}
		for(int i=0; i<m; i++){
			for(int j=0; j<l; j++){
				aryB[i][j] = in.nextInt();
			}
		}
		
		//??????????????????
		for(int i=0; i<n; i++){
			for(int j=0; j<l; j++){
				for(int k=0; k<m; k++){
					aryC[i][j] += aryA[i][k]*aryB[k][j];
				}
			}
		}
		//??¨???
		for(int i=0; i<n; i++){
			for(int j=0; j<l; j++){
				System.out.print(aryC[i][j]);
				if(j != l-1){
					System.out.print(" ");
				}
			}
			System.out.println();
		}
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int m = in.nextInt();
		int l = in.nextInt();
		long[][] aryA = new long[n][m];
		long[][] aryB = new long[m][l];
		long[][] aryC = new long[n][l];
		
		//????????§?????????????´????????´???????
		for(int i=0; i<n; i++){
			for(int j=0; j<m; j++){
				aryA[i][j] = in.nextInt();
			}
		}
		for(int i=0; i<m; i++){
			for(int j=0; j<l; j++){
				aryB[i][j] = in.nextInt();
			}
		}
		
		//??????????????????
		for(int i=0; i<n; i++){
			for(int j=0; j<l; j++){
				for(int k=0; k<m; k++){
					aryC[i][j] += aryA[i][k]*aryB[k][j];
				}
			}
		}
		//??¨???
		for(int i=0; i<n; i++){
			for(int j=0; j<l; j++){
				System.out.print(aryC[i][j]);
				if(j != l-1){
					System.out.print(" ");
				}
			}
			System.out.println();
		}
	}
} Main public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int m = in.nextInt();
		int l = in.nextInt();
		long[][] aryA = new long[n][m];
		long[][] aryB = new long[m][l];
		long[][] aryC = new long[n][l];
		
		//????????§?????????????´????????´???????
		for(int i=0; i<n; i++){
			for(int j=0; j<m; j++){
				aryA[i][j] = in.nextInt();
			}
		}
		for(int i=0; i<m; i++){
			for(int j=0; j<l; j++){
				aryB[i][j] = in.nextInt();
			}
		}
		
		//??????????????????
		for(int i=0; i<n; i++){
			for(int j=0; j<l; j++){
				for(int k=0; k<m; k++){
					aryC[i][j] += aryA[i][k]*aryB[k][j];
				}
			}
		}
		//??¨???
		for(int i=0; i<n; i++){
			for(int j=0; j<l; j++){
				System.out.print(aryC[i][j]);
				if(j != l-1){
					System.out.print(" ");
				}
			}
			System.out.println();
		}
	} main {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int m = in.nextInt();
		int l = in.nextInt();
		long[][] aryA = new long[n][m];
		long[][] aryB = new long[m][l];
		long[][] aryC = new long[n][l];
		
		//????????§?????????????´????????´???????
		for(int i=0; i<n; i++){
			for(int j=0; j<m; j++){
				aryA[i][j] = in.nextInt();
			}
		}
		for(int i=0; i<m; i++){
			for(int j=0; j<l; j++){
				aryB[i][j] = in.nextInt();
			}
		}
		
		//??????????????????
		for(int i=0; i<n; i++){
			for(int j=0; j<l; j++){
				for(int k=0; k<m; k++){
					aryC[i][j] += aryA[i][k]*aryB[k][j];
				}
			}
		}
		//??¨???
		for(int i=0; i<n; i++){
			for(int j=0; j<l; j++){
				System.out.print(aryC[i][j]);
				if(j != l-1){
					System.out.print(" ");
				}
			}
			System.out.println();
		}
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int n = in.nextInt(); n in.nextInt() in.nextInt in int m = in.nextInt(); m in.nextInt() in.nextInt in int l = in.nextInt(); l in.nextInt() in.nextInt in long[][] aryA = new long[n][m]; aryA new long[n][m] n m long[][] aryB = new long[m][l]; aryB new long[m][l] m l long[][] aryC = new long[n][l]; aryC new long[n][l] n l for(int i=0; i<n; i++){
			for(int j=0; j<m; j++){
				aryA[i][j] = in.nextInt();
			}
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			for(int j=0; j<m; j++){
				aryA[i][j] = in.nextInt();
			}
		} {
			for(int j=0; j<m; j++){
				aryA[i][j] = in.nextInt();
			}
		} for(int j=0; j<m; j++){
				aryA[i][j] = in.nextInt();
			} int j=0; int j=0; j 0 j<m j m j++ j++ j {
				aryA[i][j] = in.nextInt();
			} {
				aryA[i][j] = in.nextInt();
			} aryA[i][j] = in.nextInt() aryA[i][j] aryA[i] aryA i j in.nextInt() in.nextInt in for(int i=0; i<m; i++){
			for(int j=0; j<l; j++){
				aryB[i][j] = in.nextInt();
			}
		} int i=0; int i=0; i 0 i<m i m i++ i++ i {
			for(int j=0; j<l; j++){
				aryB[i][j] = in.nextInt();
			}
		} {
			for(int j=0; j<l; j++){
				aryB[i][j] = in.nextInt();
			}
		} for(int j=0; j<l; j++){
				aryB[i][j] = in.nextInt();
			} int j=0; int j=0; j 0 j<l j l j++ j++ j {
				aryB[i][j] = in.nextInt();
			} {
				aryB[i][j] = in.nextInt();
			} aryB[i][j] = in.nextInt() aryB[i][j] aryB[i] aryB i j in.nextInt() in.nextInt in for(int i=0; i<n; i++){
			for(int j=0; j<l; j++){
				for(int k=0; k<m; k++){
					aryC[i][j] += aryA[i][k]*aryB[k][j];
				}
			}
		} 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++){
					aryC[i][j] += aryA[i][k]*aryB[k][j];
				}
			}
		} {
			for(int j=0; j<l; j++){
				for(int k=0; k<m; k++){
					aryC[i][j] += aryA[i][k]*aryB[k][j];
				}
			}
		} for(int j=0; j<l; j++){
				for(int k=0; k<m; k++){
					aryC[i][j] += aryA[i][k]*aryB[k][j];
				}
			} int j=0; int j=0; j 0 j<l j l j++ j++ j {
				for(int k=0; k<m; k++){
					aryC[i][j] += aryA[i][k]*aryB[k][j];
				}
			} {
				for(int k=0; k<m; k++){
					aryC[i][j] += aryA[i][k]*aryB[k][j];
				}
			} for(int k=0; k<m; k++){
					aryC[i][j] += aryA[i][k]*aryB[k][j];
				} int k=0; int k=0; k 0 k<m k m k++ k++ k {
					aryC[i][j] += aryA[i][k]*aryB[k][j];
				} {
					aryC[i][j] += aryA[i][k]*aryB[k][j];
				} aryC[i][j] += aryA[i][k]*aryB[k][j] aryC[i][j] aryC[i] aryC i j aryA[i][k]*aryB[k][j] aryA[i][k] aryA[i] aryA i k aryB[k][j] aryB[k] aryB k j for(int i=0; i<n; i++){
			for(int j=0; j<l; j++){
				System.out.print(aryC[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++){
				System.out.print(aryC[i][j]);
				if(j != l-1){
					System.out.print(" ");
				}
			}
			System.out.println();
		} {
			for(int j=0; j<l; j++){
				System.out.print(aryC[i][j]);
				if(j != l-1){
					System.out.print(" ");
				}
			}
			System.out.println();
		} for(int j=0; j<l; j++){
				System.out.print(aryC[i][j]);
				if(j != l-1){
					System.out.print(" ");
				}
			} int j=0; int j=0; j 0 j<l j l j++ j++ j {
				System.out.print(aryC[i][j]);
				if(j != l-1){
					System.out.print(" ");
				}
			} {
				System.out.print(aryC[i][j]);
				if(j != l-1){
					System.out.print(" ");
				}
			} System.out.print(aryC[i][j]) System.out.print System.out System System.out aryC[i][j] aryC[i] aryC i j if(j != l-1){
					System.out.print(" ");
				} 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 String[] args args public class Main{
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int m = in.nextInt();
		int l = in.nextInt();
		long[][] aryA = new long[n][m];
		long[][] aryB = new long[m][l];
		long[][] aryC = new long[n][l];
		
		//????????§?????????????´????????´???????
		for(int i=0; i<n; i++){
			for(int j=0; j<m; j++){
				aryA[i][j] = in.nextInt();
			}
		}
		for(int i=0; i<m; i++){
			for(int j=0; j<l; j++){
				aryB[i][j] = in.nextInt();
			}
		}
		
		//??????????????????
		for(int i=0; i<n; i++){
			for(int j=0; j<l; j++){
				for(int k=0; k<m; k++){
					aryC[i][j] += aryA[i][k]*aryB[k][j];
				}
			}
		}
		//??¨???
		for(int i=0; i<n; i++){
			for(int j=0; j<l; j++){
				System.out.print(aryC[i][j]);
				if(j != l-1){
					System.out.print(" ");
				}
			}
			System.out.println();
		}
	}
} public class Main{
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int m = in.nextInt();
		int l = in.nextInt();
		long[][] aryA = new long[n][m];
		long[][] aryB = new long[m][l];
		long[][] aryC = new long[n][l];
		
		//????????§?????????????´????????´???????
		for(int i=0; i<n; i++){
			for(int j=0; j<m; j++){
				aryA[i][j] = in.nextInt();
			}
		}
		for(int i=0; i<m; i++){
			for(int j=0; j<l; j++){
				aryB[i][j] = in.nextInt();
			}
		}
		
		//??????????????????
		for(int i=0; i<n; i++){
			for(int j=0; j<l; j++){
				for(int k=0; k<m; k++){
					aryC[i][j] += aryA[i][k]*aryB[k][j];
				}
			}
		}
		//??¨???
		for(int i=0; i<n; i++){
			for(int j=0; j<l; j++){
				System.out.print(aryC[i][j]);
				if(j != l-1){
					System.out.print(" ");
				}
			}
			System.out.println();
		}
	}
} Main

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int m = in.nextInt();
		int l = in.nextInt();
		long[][] aryA = new long[n][m];
		long[][] aryB = new long[m][l];
		long[][] aryC = new long[n][l];
		
		//????????§?????????????´????????´???????
		for(int i=0; i<n; i++){
			for(int j=0; j<m; j++){
				aryA[i][j] = in.nextInt();
			}
		}
		for(int i=0; i<m; i++){
			for(int j=0; j<l; j++){
				aryB[i][j] = in.nextInt();
			}
		}
		
		//??????????????????
		for(int i=0; i<n; i++){
			for(int j=0; j<l; j++){
				for(int k=0; k<m; k++){
					aryC[i][j] += aryA[i][k]*aryB[k][j];
				}
			}
		}
		//??¨???
		for(int i=0; i<n; i++){
			for(int j=0; j<l; j++){
				System.out.print(aryC[i][j]);
				if(j != l-1){
					System.out.print(" ");
				}
			}
			System.out.println();
		}
	}
}