import java.util.Scanner;

public class Main{
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);

		//入力
		int n = scanner.nextInt();
		int m = scanner.nextInt();
		int l = scanner.nextInt();

		//配列nm,ml
		int[][] nm = new int[n][m];
		int[][] ml = new int[m][l];

		//nm入力
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				nm[i][j] = scanner.nextInt();
			}
		}
		//ml入力
		for (int i = 0; i < m; i++) {
			for (int j = 0; j < l; j++) {
				ml[i][j] = scanner.nextInt();
			}
		}

		//n*lをm回繰り返しsumに計上。sumをn*l回繰り返し出力
		for(int i=0; i<n; i++) {
			
			for(int j=0; j<l; j++) {
				
				long sum = 0;
				for(int k=0; k<m; k++) {
					
					sum += nm[i][k] * ml[k][j];
					
				}
				if(j == 0) {
					System.out.print(sum);
				}else {
					System.out.print(" " + sum);
				}
			}
							System.out.println();
		}
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);

		//入力
		int n = scanner.nextInt();
		int m = scanner.nextInt();
		int l = scanner.nextInt();

		//配列nm,ml
		int[][] nm = new int[n][m];
		int[][] ml = new int[m][l];

		//nm入力
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				nm[i][j] = scanner.nextInt();
			}
		}
		//ml入力
		for (int i = 0; i < m; i++) {
			for (int j = 0; j < l; j++) {
				ml[i][j] = scanner.nextInt();
			}
		}

		//n*lをm回繰り返しsumに計上。sumをn*l回繰り返し出力
		for(int i=0; i<n; i++) {
			
			for(int j=0; j<l; j++) {
				
				long sum = 0;
				for(int k=0; k<m; k++) {
					
					sum += nm[i][k] * ml[k][j];
					
				}
				if(j == 0) {
					System.out.print(sum);
				}else {
					System.out.print(" " + sum);
				}
			}
							System.out.println();
		}
	}
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);

		//入力
		int n = scanner.nextInt();
		int m = scanner.nextInt();
		int l = scanner.nextInt();

		//配列nm,ml
		int[][] nm = new int[n][m];
		int[][] ml = new int[m][l];

		//nm入力
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				nm[i][j] = scanner.nextInt();
			}
		}
		//ml入力
		for (int i = 0; i < m; i++) {
			for (int j = 0; j < l; j++) {
				ml[i][j] = scanner.nextInt();
			}
		}

		//n*lをm回繰り返しsumに計上。sumをn*l回繰り返し出力
		for(int i=0; i<n; i++) {
			
			for(int j=0; j<l; j++) {
				
				long sum = 0;
				for(int k=0; k<m; k++) {
					
					sum += nm[i][k] * ml[k][j];
					
				}
				if(j == 0) {
					System.out.print(sum);
				}else {
					System.out.print(" " + sum);
				}
			}
							System.out.println();
		}
	} main {
		Scanner scanner = new Scanner(System.in);

		//入力
		int n = scanner.nextInt();
		int m = scanner.nextInt();
		int l = scanner.nextInt();

		//配列nm,ml
		int[][] nm = new int[n][m];
		int[][] ml = new int[m][l];

		//nm入力
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				nm[i][j] = scanner.nextInt();
			}
		}
		//ml入力
		for (int i = 0; i < m; i++) {
			for (int j = 0; j < l; j++) {
				ml[i][j] = scanner.nextInt();
			}
		}

		//n*lをm回繰り返しsumに計上。sumをn*l回繰り返し出力
		for(int i=0; i<n; i++) {
			
			for(int j=0; j<l; j++) {
				
				long sum = 0;
				for(int k=0; k<m; k++) {
					
					sum += nm[i][k] * ml[k][j];
					
				}
				if(j == 0) {
					System.out.print(sum);
				}else {
					System.out.print(" " + sum);
				}
			}
							System.out.println();
		}
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int m = scanner.nextInt(); m scanner.nextInt() scanner.nextInt scanner int l = scanner.nextInt(); l scanner.nextInt() scanner.nextInt scanner int[][] nm = new int[n][m]; nm new int[n][m] n m int[][] ml = new int[m][l]; ml new int[m][l] m l for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				nm[i][j] = scanner.nextInt();
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			for (int j = 0; j < m; j++) {
				nm[i][j] = scanner.nextInt();
			}
		} {
			for (int j = 0; j < m; j++) {
				nm[i][j] = scanner.nextInt();
			}
		} for (int j = 0; j < m; j++) {
				nm[i][j] = scanner.nextInt();
			} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
				nm[i][j] = scanner.nextInt();
			} {
				nm[i][j] = scanner.nextInt();
			} nm[i][j] = scanner.nextInt() nm[i][j] nm[i] nm i j scanner.nextInt() scanner.nextInt scanner for (int i = 0; i < m; i++) {
			for (int j = 0; j < l; j++) {
				ml[i][j] = scanner.nextInt();
			}
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
			for (int j = 0; j < l; j++) {
				ml[i][j] = scanner.nextInt();
			}
		} {
			for (int j = 0; j < l; j++) {
				ml[i][j] = scanner.nextInt();
			}
		} for (int j = 0; j < l; j++) {
				ml[i][j] = scanner.nextInt();
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				ml[i][j] = scanner.nextInt();
			} {
				ml[i][j] = scanner.nextInt();
			} ml[i][j] = scanner.nextInt() ml[i][j] ml[i] ml i j scanner.nextInt() scanner.nextInt scanner for(int i=0; i<n; i++) {
			
			for(int j=0; j<l; j++) {
				
				long sum = 0;
				for(int k=0; k<m; k++) {
					
					sum += nm[i][k] * ml[k][j];
					
				}
				if(j == 0) {
					System.out.print(sum);
				}else {
					System.out.print(" " + sum);
				}
			}
							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++) {
				
				long sum = 0;
				for(int k=0; k<m; k++) {
					
					sum += nm[i][k] * ml[k][j];
					
				}
				if(j == 0) {
					System.out.print(sum);
				}else {
					System.out.print(" " + sum);
				}
			}
							System.out.println();
		} {
			
			for(int j=0; j<l; j++) {
				
				long sum = 0;
				for(int k=0; k<m; k++) {
					
					sum += nm[i][k] * ml[k][j];
					
				}
				if(j == 0) {
					System.out.print(sum);
				}else {
					System.out.print(" " + sum);
				}
			}
							System.out.println();
		} for(int j=0; j<l; j++) {
				
				long sum = 0;
				for(int k=0; k<m; k++) {
					
					sum += nm[i][k] * ml[k][j];
					
				}
				if(j == 0) {
					System.out.print(sum);
				}else {
					System.out.print(" " + sum);
				}
			} int j=0; int j=0; j 0 j<l j l j++ j++ j {
				
				long sum = 0;
				for(int k=0; k<m; k++) {
					
					sum += nm[i][k] * ml[k][j];
					
				}
				if(j == 0) {
					System.out.print(sum);
				}else {
					System.out.print(" " + sum);
				}
			} {
				
				long sum = 0;
				for(int k=0; k<m; k++) {
					
					sum += nm[i][k] * ml[k][j];
					
				}
				if(j == 0) {
					System.out.print(sum);
				}else {
					System.out.print(" " + sum);
				}
			} long sum = 0; sum 0 for(int k=0; k<m; k++) {
					
					sum += nm[i][k] * ml[k][j];
					
				} int k=0; int k=0; k 0 k<m k m k++ k++ k {
					
					sum += nm[i][k] * ml[k][j];
					
				} {
					
					sum += nm[i][k] * ml[k][j];
					
				} sum += nm[i][k] * ml[k][j] sum nm[i][k] * ml[k][j] nm[i][k] nm[i] nm i k ml[k][j] ml[k] ml k j if(j == 0) {
					System.out.print(sum);
				}else {
					System.out.print(" " + sum);
				} j == 0 j 0 {
					System.out.print(sum);
				} System.out.print(sum) System.out.print System.out System System.out sum {
					System.out.print(" " + sum);
				} System.out.print(" " + sum) System.out.print System.out System System.out " " + sum " " sum System.out.println() System.out.println System.out System System.out String[] args args public class Main{
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);

		//入力
		int n = scanner.nextInt();
		int m = scanner.nextInt();
		int l = scanner.nextInt();

		//配列nm,ml
		int[][] nm = new int[n][m];
		int[][] ml = new int[m][l];

		//nm入力
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				nm[i][j] = scanner.nextInt();
			}
		}
		//ml入力
		for (int i = 0; i < m; i++) {
			for (int j = 0; j < l; j++) {
				ml[i][j] = scanner.nextInt();
			}
		}

		//n*lをm回繰り返しsumに計上。sumをn*l回繰り返し出力
		for(int i=0; i<n; i++) {
			
			for(int j=0; j<l; j++) {
				
				long sum = 0;
				for(int k=0; k<m; k++) {
					
					sum += nm[i][k] * ml[k][j];
					
				}
				if(j == 0) {
					System.out.print(sum);
				}else {
					System.out.print(" " + sum);
				}
			}
							System.out.println();
		}
	}
} public class Main{
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);

		//入力
		int n = scanner.nextInt();
		int m = scanner.nextInt();
		int l = scanner.nextInt();

		//配列nm,ml
		int[][] nm = new int[n][m];
		int[][] ml = new int[m][l];

		//nm入力
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				nm[i][j] = scanner.nextInt();
			}
		}
		//ml入力
		for (int i = 0; i < m; i++) {
			for (int j = 0; j < l; j++) {
				ml[i][j] = scanner.nextInt();
			}
		}

		//n*lをm回繰り返しsumに計上。sumをn*l回繰り返し出力
		for(int i=0; i<n; i++) {
			
			for(int j=0; j<l; j++) {
				
				long sum = 0;
				for(int k=0; k<m; k++) {
					
					sum += nm[i][k] * ml[k][j];
					
				}
				if(j == 0) {
					System.out.print(sum);
				}else {
					System.out.print(" " + sum);
				}
			}
							System.out.println();
		}
	}
} Main
import java.util.Scanner;

public class Main{
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);

		//入力
		int n = scanner.nextInt();
		int m = scanner.nextInt();
		int l = scanner.nextInt();

		//配列nm,ml
		int[][] nm = new int[n][m];
		int[][] ml = new int[m][l];

		//nm入力
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				nm[i][j] = scanner.nextInt();
			}
		}
		//ml入力
		for (int i = 0; i < m; i++) {
			for (int j = 0; j < l; j++) {
				ml[i][j] = scanner.nextInt();
			}
		}

		//n*lをm回繰り返しsumに計上。sumをn*l回繰り返し出力
		for(int i=0; i<n; i++) {
			
			for(int j=0; j<l; j++) {
				
				long sum = 0;
				for(int k=0; k<m; k++) {
					
					sum += nm[i][k] * ml[k][j];
					
				}
				if(j == 0) {
					System.out.print(sum);
				}else {
					System.out.print(" " + sum);
				}
			}
							System.out.println();
		}
	}
}
