
import java.util.*;
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();
		int[][] A = new int[n][m];
		int[][] B = new int[m][l];
		long[][] C = new long[n][l];
		
		//input
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < m; j++) {
				A[i][j] = scan.nextInt();
			}
		}
		for(int i = 0; i < m; i++) {
			for(int j = 0; j < l; j++) {
				B[i][j] = scan.nextInt();
			}
		}
		for(int v = 0; v < n; v++) {
			for(int h = 0; h < l; h++) {
				for(int k = 0; k < m; k++) {
					C[v][h] += A[v][k] * B[k][h];
				}
			}
		}
		//output
		for(int v = 0; v < n; v++) {
			for(int h = 0; h < l; h++) {
				if(h != l-1) {
					System.out.print(C[v][h] + " ");
				} else {
					System.out.println(C[v][h]);
				}
			}
		}
	}
} import java.util.*; util.* java 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();
		int[][] A = new int[n][m];
		int[][] B = new int[m][l];
		long[][] C = new long[n][l];
		
		//input
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < m; j++) {
				A[i][j] = scan.nextInt();
			}
		}
		for(int i = 0; i < m; i++) {
			for(int j = 0; j < l; j++) {
				B[i][j] = scan.nextInt();
			}
		}
		for(int v = 0; v < n; v++) {
			for(int h = 0; h < l; h++) {
				for(int k = 0; k < m; k++) {
					C[v][h] += A[v][k] * B[k][h];
				}
			}
		}
		//output
		for(int v = 0; v < n; v++) {
			for(int h = 0; h < l; h++) {
				if(h != l-1) {
					System.out.print(C[v][h] + " ");
				} else {
					System.out.println(C[v][h]);
				}
			}
		}
	}
} 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();
		int[][] A = new int[n][m];
		int[][] B = new int[m][l];
		long[][] C = new long[n][l];
		
		//input
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < m; j++) {
				A[i][j] = scan.nextInt();
			}
		}
		for(int i = 0; i < m; i++) {
			for(int j = 0; j < l; j++) {
				B[i][j] = scan.nextInt();
			}
		}
		for(int v = 0; v < n; v++) {
			for(int h = 0; h < l; h++) {
				for(int k = 0; k < m; k++) {
					C[v][h] += A[v][k] * B[k][h];
				}
			}
		}
		//output
		for(int v = 0; v < n; v++) {
			for(int h = 0; h < l; h++) {
				if(h != l-1) {
					System.out.print(C[v][h] + " ");
				} else {
					System.out.println(C[v][h]);
				}
			}
		}
	} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int l = scan.nextInt();
		int[][] A = new int[n][m];
		int[][] B = new int[m][l];
		long[][] C = new long[n][l];
		
		//input
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < m; j++) {
				A[i][j] = scan.nextInt();
			}
		}
		for(int i = 0; i < m; i++) {
			for(int j = 0; j < l; j++) {
				B[i][j] = scan.nextInt();
			}
		}
		for(int v = 0; v < n; v++) {
			for(int h = 0; h < l; h++) {
				for(int k = 0; k < m; k++) {
					C[v][h] += A[v][k] * B[k][h];
				}
			}
		}
		//output
		for(int v = 0; v < n; v++) {
			for(int h = 0; h < l; h++) {
				if(h != l-1) {
					System.out.print(C[v][h] + " ");
				} else {
					System.out.println(C[v][h]);
				}
			}
		}
	} 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 int[][] A = new int[n][m]; A new int[n][m] n m int[][] B = new int[m][l]; B new int[m][l] m l long[][] C = new long[n][l]; C new long[n][l] n l for(int i = 0; i < n; i++) {
			for(int j = 0; j < m; j++) {
				A[i][j] = scan.nextInt();
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			for(int j = 0; j < m; j++) {
				A[i][j] = scan.nextInt();
			}
		} {
			for(int j = 0; j < m; j++) {
				A[i][j] = scan.nextInt();
			}
		} for(int j = 0; j < m; j++) {
				A[i][j] = scan.nextInt();
			} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
				A[i][j] = scan.nextInt();
			} {
				A[i][j] = scan.nextInt();
			} A[i][j] = scan.nextInt() A[i][j] A[i] A i j scan.nextInt() scan.nextInt scan for(int i = 0; i < m; i++) {
			for(int j = 0; j < l; j++) {
				B[i][j] = scan.nextInt();
			}
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
			for(int j = 0; j < l; j++) {
				B[i][j] = scan.nextInt();
			}
		} {
			for(int j = 0; j < l; j++) {
				B[i][j] = scan.nextInt();
			}
		} for(int j = 0; j < l; j++) {
				B[i][j] = scan.nextInt();
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				B[i][j] = scan.nextInt();
			} {
				B[i][j] = scan.nextInt();
			} B[i][j] = scan.nextInt() B[i][j] B[i] B i j scan.nextInt() scan.nextInt scan for(int v = 0; v < n; v++) {
			for(int h = 0; h < l; h++) {
				for(int k = 0; k < m; k++) {
					C[v][h] += A[v][k] * B[k][h];
				}
			}
		} int v = 0; int v = 0; v 0 v < n v n v++ v++ v {
			for(int h = 0; h < l; h++) {
				for(int k = 0; k < m; k++) {
					C[v][h] += A[v][k] * B[k][h];
				}
			}
		} {
			for(int h = 0; h < l; h++) {
				for(int k = 0; k < m; k++) {
					C[v][h] += A[v][k] * B[k][h];
				}
			}
		} for(int h = 0; h < l; h++) {
				for(int k = 0; k < m; k++) {
					C[v][h] += A[v][k] * B[k][h];
				}
			} int h = 0; int h = 0; h 0 h < l h l h++ h++ h {
				for(int k = 0; k < m; k++) {
					C[v][h] += A[v][k] * B[k][h];
				}
			} {
				for(int k = 0; k < m; k++) {
					C[v][h] += A[v][k] * B[k][h];
				}
			} for(int k = 0; k < m; k++) {
					C[v][h] += A[v][k] * B[k][h];
				} int k = 0; int k = 0; k 0 k < m k m k++ k++ k {
					C[v][h] += A[v][k] * B[k][h];
				} {
					C[v][h] += A[v][k] * B[k][h];
				} C[v][h] += A[v][k] * B[k][h] C[v][h] C[v] C v h A[v][k] * B[k][h] A[v][k] A[v] A v k B[k][h] B[k] B k h for(int v = 0; v < n; v++) {
			for(int h = 0; h < l; h++) {
				if(h != l-1) {
					System.out.print(C[v][h] + " ");
				} else {
					System.out.println(C[v][h]);
				}
			}
		} int v = 0; int v = 0; v 0 v < n v n v++ v++ v {
			for(int h = 0; h < l; h++) {
				if(h != l-1) {
					System.out.print(C[v][h] + " ");
				} else {
					System.out.println(C[v][h]);
				}
			}
		} {
			for(int h = 0; h < l; h++) {
				if(h != l-1) {
					System.out.print(C[v][h] + " ");
				} else {
					System.out.println(C[v][h]);
				}
			}
		} for(int h = 0; h < l; h++) {
				if(h != l-1) {
					System.out.print(C[v][h] + " ");
				} else {
					System.out.println(C[v][h]);
				}
			} int h = 0; int h = 0; h 0 h < l h l h++ h++ h {
				if(h != l-1) {
					System.out.print(C[v][h] + " ");
				} else {
					System.out.println(C[v][h]);
				}
			} {
				if(h != l-1) {
					System.out.print(C[v][h] + " ");
				} else {
					System.out.println(C[v][h]);
				}
			} if(h != l-1) {
					System.out.print(C[v][h] + " ");
				} else {
					System.out.println(C[v][h]);
				} h != l-1 h l-1 l 1 {
					System.out.print(C[v][h] + " ");
				} System.out.print(C[v][h] + " ") System.out.print System.out System System.out C[v][h] + " " C[v][h] C[v] C v h " " {
					System.out.println(C[v][h]);
				} System.out.println(C[v][h]) System.out.println System.out System System.out C[v][h] C[v] C v h String...args args

import java.util.*;
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();
		int[][] A = new int[n][m];
		int[][] B = new int[m][l];
		long[][] C = new long[n][l];
		
		//input
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < m; j++) {
				A[i][j] = scan.nextInt();
			}
		}
		for(int i = 0; i < m; i++) {
			for(int j = 0; j < l; j++) {
				B[i][j] = scan.nextInt();
			}
		}
		for(int v = 0; v < n; v++) {
			for(int h = 0; h < l; h++) {
				for(int k = 0; k < m; k++) {
					C[v][h] += A[v][k] * B[k][h];
				}
			}
		}
		//output
		for(int v = 0; v < n; v++) {
			for(int h = 0; h < l; h++) {
				if(h != l-1) {
					System.out.print(C[v][h] + " ");
				} else {
					System.out.println(C[v][h]);
				}
			}
		}
	}
}
