import java.util.Scanner;

public class Main {
	public static void main(String [] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int l = scan.nextInt();
		long Matrix_A[][] = new long[n][m];
		long Matrix_B[][] = new long[m][l];
		long Matrix_C[][] = new long[n][l];
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < l; j++) {
				Matrix_C[i][j] = 0;
			}
		}
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < m; j++) {
				Matrix_A[i][j] = scan.nextLong();
			}
		}
		
		for(int i = 0; i < m; i++) {
			for(int j = 0; j < l; j++) {
				Matrix_B[i][j] = scan.nextLong();
			}
		}
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < m; j++) {
				for(int k = 0; k < l; k++) {
					Matrix_C[i][k] += Matrix_A[i][j] * Matrix_B[j][k]; 
				}
			}
		}
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < l; j++) {
				if( j == l - 1) {
					System.out.println(Matrix_C[i][j]);
				}else {
					System.out.print(Matrix_C[i][j] + " ");
				}
			}
		}
		
		
	}
}
 import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String [] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int l = scan.nextInt();
		long Matrix_A[][] = new long[n][m];
		long Matrix_B[][] = new long[m][l];
		long Matrix_C[][] = new long[n][l];
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < l; j++) {
				Matrix_C[i][j] = 0;
			}
		}
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < m; j++) {
				Matrix_A[i][j] = scan.nextLong();
			}
		}
		
		for(int i = 0; i < m; i++) {
			for(int j = 0; j < l; j++) {
				Matrix_B[i][j] = scan.nextLong();
			}
		}
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < m; j++) {
				for(int k = 0; k < l; k++) {
					Matrix_C[i][k] += Matrix_A[i][j] * Matrix_B[j][k]; 
				}
			}
		}
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < l; j++) {
				if( j == l - 1) {
					System.out.println(Matrix_C[i][j]);
				}else {
					System.out.print(Matrix_C[i][j] + " ");
				}
			}
		}
		
		
	}
} Main public static void main(String [] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int l = scan.nextInt();
		long Matrix_A[][] = new long[n][m];
		long Matrix_B[][] = new long[m][l];
		long Matrix_C[][] = new long[n][l];
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < l; j++) {
				Matrix_C[i][j] = 0;
			}
		}
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < m; j++) {
				Matrix_A[i][j] = scan.nextLong();
			}
		}
		
		for(int i = 0; i < m; i++) {
			for(int j = 0; j < l; j++) {
				Matrix_B[i][j] = scan.nextLong();
			}
		}
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < m; j++) {
				for(int k = 0; k < l; k++) {
					Matrix_C[i][k] += Matrix_A[i][j] * Matrix_B[j][k]; 
				}
			}
		}
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < l; j++) {
				if( j == l - 1) {
					System.out.println(Matrix_C[i][j]);
				}else {
					System.out.print(Matrix_C[i][j] + " ");
				}
			}
		}
		
		
	} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int l = scan.nextInt();
		long Matrix_A[][] = new long[n][m];
		long Matrix_B[][] = new long[m][l];
		long Matrix_C[][] = new long[n][l];
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < l; j++) {
				Matrix_C[i][j] = 0;
			}
		}
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < m; j++) {
				Matrix_A[i][j] = scan.nextLong();
			}
		}
		
		for(int i = 0; i < m; i++) {
			for(int j = 0; j < l; j++) {
				Matrix_B[i][j] = scan.nextLong();
			}
		}
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < m; j++) {
				for(int k = 0; k < l; k++) {
					Matrix_C[i][k] += Matrix_A[i][j] * Matrix_B[j][k]; 
				}
			}
		}
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < l; j++) {
				if( j == l - 1) {
					System.out.println(Matrix_C[i][j]);
				}else {
					System.out.print(Matrix_C[i][j] + " ");
				}
			}
		}
		
		
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int m = scan.nextInt(); m scan.nextInt() scan.nextInt scan int l = scan.nextInt(); l scan.nextInt() scan.nextInt scan long Matrix_A[][] = new long[n][m]; Matrix_A new long[n][m] n m long Matrix_B[][] = new long[m][l]; Matrix_B new long[m][l] m l long Matrix_C[][] = new long[n][l]; Matrix_C new long[n][l] n l for(int i = 0; i < n; i++) {
			for(int j = 0; j < l; j++) {
				Matrix_C[i][j] = 0;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			for(int j = 0; j < l; j++) {
				Matrix_C[i][j] = 0;
			}
		} {
			for(int j = 0; j < l; j++) {
				Matrix_C[i][j] = 0;
			}
		} for(int j = 0; j < l; j++) {
				Matrix_C[i][j] = 0;
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				Matrix_C[i][j] = 0;
			} {
				Matrix_C[i][j] = 0;
			} Matrix_C[i][j] = 0 Matrix_C[i][j] Matrix_C[i] Matrix_C i j 0 for(int i = 0; i < n; i++) {
			for(int j = 0; j < m; j++) {
				Matrix_A[i][j] = scan.nextLong();
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			for(int j = 0; j < m; j++) {
				Matrix_A[i][j] = scan.nextLong();
			}
		} {
			for(int j = 0; j < m; j++) {
				Matrix_A[i][j] = scan.nextLong();
			}
		} for(int j = 0; j < m; j++) {
				Matrix_A[i][j] = scan.nextLong();
			} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
				Matrix_A[i][j] = scan.nextLong();
			} {
				Matrix_A[i][j] = scan.nextLong();
			} Matrix_A[i][j] = scan.nextLong() Matrix_A[i][j] Matrix_A[i] Matrix_A i j scan.nextLong() scan.nextLong scan for(int i = 0; i < m; i++) {
			for(int j = 0; j < l; j++) {
				Matrix_B[i][j] = scan.nextLong();
			}
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
			for(int j = 0; j < l; j++) {
				Matrix_B[i][j] = scan.nextLong();
			}
		} {
			for(int j = 0; j < l; j++) {
				Matrix_B[i][j] = scan.nextLong();
			}
		} for(int j = 0; j < l; j++) {
				Matrix_B[i][j] = scan.nextLong();
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				Matrix_B[i][j] = scan.nextLong();
			} {
				Matrix_B[i][j] = scan.nextLong();
			} Matrix_B[i][j] = scan.nextLong() Matrix_B[i][j] Matrix_B[i] Matrix_B i j scan.nextLong() scan.nextLong scan for(int i = 0; i < n; i++) {
			for(int j = 0; j < m; j++) {
				for(int k = 0; k < l; k++) {
					Matrix_C[i][k] += Matrix_A[i][j] * Matrix_B[j][k]; 
				}
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			for(int j = 0; j < m; j++) {
				for(int k = 0; k < l; k++) {
					Matrix_C[i][k] += Matrix_A[i][j] * Matrix_B[j][k]; 
				}
			}
		} {
			for(int j = 0; j < m; j++) {
				for(int k = 0; k < l; k++) {
					Matrix_C[i][k] += Matrix_A[i][j] * Matrix_B[j][k]; 
				}
			}
		} for(int j = 0; j < m; j++) {
				for(int k = 0; k < l; k++) {
					Matrix_C[i][k] += Matrix_A[i][j] * Matrix_B[j][k]; 
				}
			} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
				for(int k = 0; k < l; k++) {
					Matrix_C[i][k] += Matrix_A[i][j] * Matrix_B[j][k]; 
				}
			} {
				for(int k = 0; k < l; k++) {
					Matrix_C[i][k] += Matrix_A[i][j] * Matrix_B[j][k]; 
				}
			} for(int k = 0; k < l; k++) {
					Matrix_C[i][k] += Matrix_A[i][j] * Matrix_B[j][k]; 
				} int k = 0; int k = 0; k 0 k < l k l k++ k++ k {
					Matrix_C[i][k] += Matrix_A[i][j] * Matrix_B[j][k]; 
				} {
					Matrix_C[i][k] += Matrix_A[i][j] * Matrix_B[j][k]; 
				} Matrix_C[i][k] += Matrix_A[i][j] * Matrix_B[j][k] Matrix_C[i][k] Matrix_C[i] Matrix_C i k Matrix_A[i][j] * Matrix_B[j][k] Matrix_A[i][j] Matrix_A[i] Matrix_A i j Matrix_B[j][k] Matrix_B[j] Matrix_B j k for(int i = 0; i < n; i++) {
			for(int j = 0; j < l; j++) {
				if( j == l - 1) {
					System.out.println(Matrix_C[i][j]);
				}else {
					System.out.print(Matrix_C[i][j] + " ");
				}
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			for(int j = 0; j < l; j++) {
				if( j == l - 1) {
					System.out.println(Matrix_C[i][j]);
				}else {
					System.out.print(Matrix_C[i][j] + " ");
				}
			}
		} {
			for(int j = 0; j < l; j++) {
				if( j == l - 1) {
					System.out.println(Matrix_C[i][j]);
				}else {
					System.out.print(Matrix_C[i][j] + " ");
				}
			}
		} for(int j = 0; j < l; j++) {
				if( j == l - 1) {
					System.out.println(Matrix_C[i][j]);
				}else {
					System.out.print(Matrix_C[i][j] + " ");
				}
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				if( j == l - 1) {
					System.out.println(Matrix_C[i][j]);
				}else {
					System.out.print(Matrix_C[i][j] + " ");
				}
			} {
				if( j == l - 1) {
					System.out.println(Matrix_C[i][j]);
				}else {
					System.out.print(Matrix_C[i][j] + " ");
				}
			} if( j == l - 1) {
					System.out.println(Matrix_C[i][j]);
				}else {
					System.out.print(Matrix_C[i][j] + " ");
				} j == l - 1 j l - 1 l 1 {
					System.out.println(Matrix_C[i][j]);
				} System.out.println(Matrix_C[i][j]) System.out.println System.out System System.out Matrix_C[i][j] Matrix_C[i] Matrix_C i j {
					System.out.print(Matrix_C[i][j] + " ");
				} System.out.print(Matrix_C[i][j] + " ") System.out.print System.out System System.out Matrix_C[i][j] + " " Matrix_C[i][j] Matrix_C[i] Matrix_C i j " " String [] args args public class Main {
	public static void main(String [] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int l = scan.nextInt();
		long Matrix_A[][] = new long[n][m];
		long Matrix_B[][] = new long[m][l];
		long Matrix_C[][] = new long[n][l];
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < l; j++) {
				Matrix_C[i][j] = 0;
			}
		}
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < m; j++) {
				Matrix_A[i][j] = scan.nextLong();
			}
		}
		
		for(int i = 0; i < m; i++) {
			for(int j = 0; j < l; j++) {
				Matrix_B[i][j] = scan.nextLong();
			}
		}
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < m; j++) {
				for(int k = 0; k < l; k++) {
					Matrix_C[i][k] += Matrix_A[i][j] * Matrix_B[j][k]; 
				}
			}
		}
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < l; j++) {
				if( j == l - 1) {
					System.out.println(Matrix_C[i][j]);
				}else {
					System.out.print(Matrix_C[i][j] + " ");
				}
			}
		}
		
		
	}
} public class Main {
	public static void main(String [] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int l = scan.nextInt();
		long Matrix_A[][] = new long[n][m];
		long Matrix_B[][] = new long[m][l];
		long Matrix_C[][] = new long[n][l];
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < l; j++) {
				Matrix_C[i][j] = 0;
			}
		}
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < m; j++) {
				Matrix_A[i][j] = scan.nextLong();
			}
		}
		
		for(int i = 0; i < m; i++) {
			for(int j = 0; j < l; j++) {
				Matrix_B[i][j] = scan.nextLong();
			}
		}
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < m; j++) {
				for(int k = 0; k < l; k++) {
					Matrix_C[i][k] += Matrix_A[i][j] * Matrix_B[j][k]; 
				}
			}
		}
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < l; j++) {
				if( j == l - 1) {
					System.out.println(Matrix_C[i][j]);
				}else {
					System.out.print(Matrix_C[i][j] + " ");
				}
			}
		}
		
		
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String [] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int l = scan.nextInt();
		long Matrix_A[][] = new long[n][m];
		long Matrix_B[][] = new long[m][l];
		long Matrix_C[][] = new long[n][l];
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < l; j++) {
				Matrix_C[i][j] = 0;
			}
		}
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < m; j++) {
				Matrix_A[i][j] = scan.nextLong();
			}
		}
		
		for(int i = 0; i < m; i++) {
			for(int j = 0; j < l; j++) {
				Matrix_B[i][j] = scan.nextLong();
			}
		}
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < m; j++) {
				for(int k = 0; k < l; k++) {
					Matrix_C[i][k] += Matrix_A[i][j] * Matrix_B[j][k]; 
				}
			}
		}
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < l; j++) {
				if( j == l - 1) {
					System.out.println(Matrix_C[i][j]);
				}else {
					System.out.print(Matrix_C[i][j] + " ");
				}
			}
		}
		
		
	}
}

