import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner s = new Scanner(System.in);
		
		int n = s.nextInt();
		int m = s.nextInt();
		int l = s.nextInt();
		int gyouretuA[][] = new int [n][m];
		int gyouretuB[][] = new int [m][l];
		long gyouretuC[][] = new long [n][l];
		
		for(int i = 0;i < n; i++){
			for(int j = 0;j < m; j++){
				gyouretuA[i][j] = s.nextInt();
			}
		}
		
		for(int i = 0;i < m; i++){
			for(int j =0; j < l; j++){
				gyouretuB[i][j] = s.nextInt();
			}
		}
		
		for(int i = 0;i < n; i++){
			for(int j = 0; j < l; j++){
				for(int k = 0; k < m; k++){
					gyouretuC[i][j] += gyouretuA[i][k] * gyouretuB[k][j];
				}
			}
		}
		
		for(int i =0;i < n; i++){
			for(int j =0;j < l; j++){
				System.out.print(gyouretuC[i][j]);
				if(j < l - 1)
					System.out.print(" ");
			}
			System.out.println();
			s.close();
		}
	}
}
 import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		Scanner s = new Scanner(System.in);
		
		int n = s.nextInt();
		int m = s.nextInt();
		int l = s.nextInt();
		int gyouretuA[][] = new int [n][m];
		int gyouretuB[][] = new int [m][l];
		long gyouretuC[][] = new long [n][l];
		
		for(int i = 0;i < n; i++){
			for(int j = 0;j < m; j++){
				gyouretuA[i][j] = s.nextInt();
			}
		}
		
		for(int i = 0;i < m; i++){
			for(int j =0; j < l; j++){
				gyouretuB[i][j] = s.nextInt();
			}
		}
		
		for(int i = 0;i < n; i++){
			for(int j = 0; j < l; j++){
				for(int k = 0; k < m; k++){
					gyouretuC[i][j] += gyouretuA[i][k] * gyouretuB[k][j];
				}
			}
		}
		
		for(int i =0;i < n; i++){
			for(int j =0;j < l; j++){
				System.out.print(gyouretuC[i][j]);
				if(j < l - 1)
					System.out.print(" ");
			}
			System.out.println();
			s.close();
		}
	}
} Main public static void main(String[] args){
		Scanner s = new Scanner(System.in);
		
		int n = s.nextInt();
		int m = s.nextInt();
		int l = s.nextInt();
		int gyouretuA[][] = new int [n][m];
		int gyouretuB[][] = new int [m][l];
		long gyouretuC[][] = new long [n][l];
		
		for(int i = 0;i < n; i++){
			for(int j = 0;j < m; j++){
				gyouretuA[i][j] = s.nextInt();
			}
		}
		
		for(int i = 0;i < m; i++){
			for(int j =0; j < l; j++){
				gyouretuB[i][j] = s.nextInt();
			}
		}
		
		for(int i = 0;i < n; i++){
			for(int j = 0; j < l; j++){
				for(int k = 0; k < m; k++){
					gyouretuC[i][j] += gyouretuA[i][k] * gyouretuB[k][j];
				}
			}
		}
		
		for(int i =0;i < n; i++){
			for(int j =0;j < l; j++){
				System.out.print(gyouretuC[i][j]);
				if(j < l - 1)
					System.out.print(" ");
			}
			System.out.println();
			s.close();
		}
	} main {
		Scanner s = new Scanner(System.in);
		
		int n = s.nextInt();
		int m = s.nextInt();
		int l = s.nextInt();
		int gyouretuA[][] = new int [n][m];
		int gyouretuB[][] = new int [m][l];
		long gyouretuC[][] = new long [n][l];
		
		for(int i = 0;i < n; i++){
			for(int j = 0;j < m; j++){
				gyouretuA[i][j] = s.nextInt();
			}
		}
		
		for(int i = 0;i < m; i++){
			for(int j =0; j < l; j++){
				gyouretuB[i][j] = s.nextInt();
			}
		}
		
		for(int i = 0;i < n; i++){
			for(int j = 0; j < l; j++){
				for(int k = 0; k < m; k++){
					gyouretuC[i][j] += gyouretuA[i][k] * gyouretuB[k][j];
				}
			}
		}
		
		for(int i =0;i < n; i++){
			for(int j =0;j < l; j++){
				System.out.print(gyouretuC[i][j]);
				if(j < l - 1)
					System.out.print(" ");
			}
			System.out.println();
			s.close();
		}
	} Scanner s = new Scanner(System.in); s new Scanner(System.in) int n = s.nextInt(); n s.nextInt() s.nextInt s int m = s.nextInt(); m s.nextInt() s.nextInt s int l = s.nextInt(); l s.nextInt() s.nextInt s int gyouretuA[][] = new int [n][m]; gyouretuA new int [n][m] n m int gyouretuB[][] = new int [m][l]; gyouretuB new int [m][l] m l long gyouretuC[][] = new long [n][l]; gyouretuC new long [n][l] n l for(int i = 0;i < n; i++){
			for(int j = 0;j < m; j++){
				gyouretuA[i][j] = s.nextInt();
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			for(int j = 0;j < m; j++){
				gyouretuA[i][j] = s.nextInt();
			}
		} {
			for(int j = 0;j < m; j++){
				gyouretuA[i][j] = s.nextInt();
			}
		} for(int j = 0;j < m; j++){
				gyouretuA[i][j] = s.nextInt();
			} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
				gyouretuA[i][j] = s.nextInt();
			} {
				gyouretuA[i][j] = s.nextInt();
			} gyouretuA[i][j] = s.nextInt() gyouretuA[i][j] gyouretuA[i] gyouretuA i j s.nextInt() s.nextInt s for(int i = 0;i < m; i++){
			for(int j =0; j < l; j++){
				gyouretuB[i][j] = s.nextInt();
			}
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
			for(int j =0; j < l; j++){
				gyouretuB[i][j] = s.nextInt();
			}
		} {
			for(int j =0; j < l; j++){
				gyouretuB[i][j] = s.nextInt();
			}
		} for(int j =0; j < l; j++){
				gyouretuB[i][j] = s.nextInt();
			} int j =0; int j =0; j 0 j < l j l j++ j++ j {
				gyouretuB[i][j] = s.nextInt();
			} {
				gyouretuB[i][j] = s.nextInt();
			} gyouretuB[i][j] = s.nextInt() gyouretuB[i][j] gyouretuB[i] gyouretuB i j s.nextInt() s.nextInt s for(int i = 0;i < n; i++){
			for(int j = 0; j < l; j++){
				for(int k = 0; k < m; k++){
					gyouretuC[i][j] += gyouretuA[i][k] * gyouretuB[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++){
					gyouretuC[i][j] += gyouretuA[i][k] * gyouretuB[k][j];
				}
			}
		} {
			for(int j = 0; j < l; j++){
				for(int k = 0; k < m; k++){
					gyouretuC[i][j] += gyouretuA[i][k] * gyouretuB[k][j];
				}
			}
		} for(int j = 0; j < l; j++){
				for(int k = 0; k < m; k++){
					gyouretuC[i][j] += gyouretuA[i][k] * gyouretuB[k][j];
				}
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				for(int k = 0; k < m; k++){
					gyouretuC[i][j] += gyouretuA[i][k] * gyouretuB[k][j];
				}
			} {
				for(int k = 0; k < m; k++){
					gyouretuC[i][j] += gyouretuA[i][k] * gyouretuB[k][j];
				}
			} for(int k = 0; k < m; k++){
					gyouretuC[i][j] += gyouretuA[i][k] * gyouretuB[k][j];
				} int k = 0; int k = 0; k 0 k < m k m k++ k++ k {
					gyouretuC[i][j] += gyouretuA[i][k] * gyouretuB[k][j];
				} {
					gyouretuC[i][j] += gyouretuA[i][k] * gyouretuB[k][j];
				} gyouretuC[i][j] += gyouretuA[i][k] * gyouretuB[k][j] gyouretuC[i][j] gyouretuC[i] gyouretuC i j gyouretuA[i][k] * gyouretuB[k][j] gyouretuA[i][k] gyouretuA[i] gyouretuA i k gyouretuB[k][j] gyouretuB[k] gyouretuB k j for(int i =0;i < n; i++){
			for(int j =0;j < l; j++){
				System.out.print(gyouretuC[i][j]);
				if(j < l - 1)
					System.out.print(" ");
			}
			System.out.println();
			s.close();
		} 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(gyouretuC[i][j]);
				if(j < l - 1)
					System.out.print(" ");
			}
			System.out.println();
			s.close();
		} {
			for(int j =0;j < l; j++){
				System.out.print(gyouretuC[i][j]);
				if(j < l - 1)
					System.out.print(" ");
			}
			System.out.println();
			s.close();
		} for(int j =0;j < l; j++){
				System.out.print(gyouretuC[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(gyouretuC[i][j]);
				if(j < l - 1)
					System.out.print(" ");
			} {
				System.out.print(gyouretuC[i][j]);
				if(j < l - 1)
					System.out.print(" ");
			} System.out.print(gyouretuC[i][j]) System.out.print System.out System System.out gyouretuC[i][j] gyouretuC[i] gyouretuC 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 System System.out " " System.out.println() System.out.println System.out System System.out s.close() s.close s String[] args args public class Main {
	public static void main(String[] args){
		Scanner s = new Scanner(System.in);
		
		int n = s.nextInt();
		int m = s.nextInt();
		int l = s.nextInt();
		int gyouretuA[][] = new int [n][m];
		int gyouretuB[][] = new int [m][l];
		long gyouretuC[][] = new long [n][l];
		
		for(int i = 0;i < n; i++){
			for(int j = 0;j < m; j++){
				gyouretuA[i][j] = s.nextInt();
			}
		}
		
		for(int i = 0;i < m; i++){
			for(int j =0; j < l; j++){
				gyouretuB[i][j] = s.nextInt();
			}
		}
		
		for(int i = 0;i < n; i++){
			for(int j = 0; j < l; j++){
				for(int k = 0; k < m; k++){
					gyouretuC[i][j] += gyouretuA[i][k] * gyouretuB[k][j];
				}
			}
		}
		
		for(int i =0;i < n; i++){
			for(int j =0;j < l; j++){
				System.out.print(gyouretuC[i][j]);
				if(j < l - 1)
					System.out.print(" ");
			}
			System.out.println();
			s.close();
		}
	}
} public class Main {
	public static void main(String[] args){
		Scanner s = new Scanner(System.in);
		
		int n = s.nextInt();
		int m = s.nextInt();
		int l = s.nextInt();
		int gyouretuA[][] = new int [n][m];
		int gyouretuB[][] = new int [m][l];
		long gyouretuC[][] = new long [n][l];
		
		for(int i = 0;i < n; i++){
			for(int j = 0;j < m; j++){
				gyouretuA[i][j] = s.nextInt();
			}
		}
		
		for(int i = 0;i < m; i++){
			for(int j =0; j < l; j++){
				gyouretuB[i][j] = s.nextInt();
			}
		}
		
		for(int i = 0;i < n; i++){
			for(int j = 0; j < l; j++){
				for(int k = 0; k < m; k++){
					gyouretuC[i][j] += gyouretuA[i][k] * gyouretuB[k][j];
				}
			}
		}
		
		for(int i =0;i < n; i++){
			for(int j =0;j < l; j++){
				System.out.print(gyouretuC[i][j]);
				if(j < l - 1)
					System.out.print(" ");
			}
			System.out.println();
			s.close();
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner s = new Scanner(System.in);
		
		int n = s.nextInt();
		int m = s.nextInt();
		int l = s.nextInt();
		int gyouretuA[][] = new int [n][m];
		int gyouretuB[][] = new int [m][l];
		long gyouretuC[][] = new long [n][l];
		
		for(int i = 0;i < n; i++){
			for(int j = 0;j < m; j++){
				gyouretuA[i][j] = s.nextInt();
			}
		}
		
		for(int i = 0;i < m; i++){
			for(int j =0; j < l; j++){
				gyouretuB[i][j] = s.nextInt();
			}
		}
		
		for(int i = 0;i < n; i++){
			for(int j = 0; j < l; j++){
				for(int k = 0; k < m; k++){
					gyouretuC[i][j] += gyouretuA[i][k] * gyouretuB[k][j];
				}
			}
		}
		
		for(int i =0;i < n; i++){
			for(int j =0;j < l; j++){
				System.out.print(gyouretuC[i][j]);
				if(j < l - 1)
					System.out.print(" ");
			}
			System.out.println();
			s.close();
		}
	}
}

