import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int l = sc.nextInt();

		long[][] A = new long[n][m];
		long[][] B = new long[m][l];

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				A[i][j] = sc.nextLong();
			}
		}
		for (int j = 0; j < m; j++) {
			for (int k = 0; k < l; k++) {
				B[j][k] = sc.nextLong();
			}
		}

		long[][] sum = new long[n][l];

		for (int p = 0; p < n; p++) {
			for (int q = 0; q < l; q++) {
				sum[p][q] = 0;
				for (int k = 0; k < m; k++) {
					sum[p][q] = sum[p][q] + A[p][k] * B[k][q];
				}
				if (q != l - 1) {
					System.out.print(sum[p][q] + " ");
				} else {
					System.out.print(sum[p][q]);
				}
			}
			System.out.println("");
		}

	}

}
 import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int l = sc.nextInt();

		long[][] A = new long[n][m];
		long[][] B = new long[m][l];

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				A[i][j] = sc.nextLong();
			}
		}
		for (int j = 0; j < m; j++) {
			for (int k = 0; k < l; k++) {
				B[j][k] = sc.nextLong();
			}
		}

		long[][] sum = new long[n][l];

		for (int p = 0; p < n; p++) {
			for (int q = 0; q < l; q++) {
				sum[p][q] = 0;
				for (int k = 0; k < m; k++) {
					sum[p][q] = sum[p][q] + A[p][k] * B[k][q];
				}
				if (q != l - 1) {
					System.out.print(sum[p][q] + " ");
				} else {
					System.out.print(sum[p][q]);
				}
			}
			System.out.println("");
		}

	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int l = sc.nextInt();

		long[][] A = new long[n][m];
		long[][] B = new long[m][l];

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				A[i][j] = sc.nextLong();
			}
		}
		for (int j = 0; j < m; j++) {
			for (int k = 0; k < l; k++) {
				B[j][k] = sc.nextLong();
			}
		}

		long[][] sum = new long[n][l];

		for (int p = 0; p < n; p++) {
			for (int q = 0; q < l; q++) {
				sum[p][q] = 0;
				for (int k = 0; k < m; k++) {
					sum[p][q] = sum[p][q] + A[p][k] * B[k][q];
				}
				if (q != l - 1) {
					System.out.print(sum[p][q] + " ");
				} else {
					System.out.print(sum[p][q]);
				}
			}
			System.out.println("");
		}

	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int l = sc.nextInt();

		long[][] A = new long[n][m];
		long[][] B = new long[m][l];

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				A[i][j] = sc.nextLong();
			}
		}
		for (int j = 0; j < m; j++) {
			for (int k = 0; k < l; k++) {
				B[j][k] = sc.nextLong();
			}
		}

		long[][] sum = new long[n][l];

		for (int p = 0; p < n; p++) {
			for (int q = 0; q < l; q++) {
				sum[p][q] = 0;
				for (int k = 0; k < m; k++) {
					sum[p][q] = sum[p][q] + A[p][k] * B[k][q];
				}
				if (q != l - 1) {
					System.out.print(sum[p][q] + " ");
				} else {
					System.out.print(sum[p][q]);
				}
			}
			System.out.println("");
		}

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int m = sc.nextInt(); m sc.nextInt() sc.nextInt sc int l = sc.nextInt(); l sc.nextInt() sc.nextInt sc long[][] A = new long[n][m]; A new long[n][m] n m long[][] B = new long[m][l]; B new long[m][l] m l for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				A[i][j] = sc.nextLong();
			}
		} 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] = sc.nextLong();
			}
		} {
			for (int j = 0; j < m; j++) {
				A[i][j] = sc.nextLong();
			}
		} for (int j = 0; j < m; j++) {
				A[i][j] = sc.nextLong();
			} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
				A[i][j] = sc.nextLong();
			} {
				A[i][j] = sc.nextLong();
			} A[i][j] = sc.nextLong() A[i][j] A[i] A i j sc.nextLong() sc.nextLong sc for (int j = 0; j < m; j++) {
			for (int k = 0; k < l; k++) {
				B[j][k] = sc.nextLong();
			}
		} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
			for (int k = 0; k < l; k++) {
				B[j][k] = sc.nextLong();
			}
		} {
			for (int k = 0; k < l; k++) {
				B[j][k] = sc.nextLong();
			}
		} for (int k = 0; k < l; k++) {
				B[j][k] = sc.nextLong();
			} int k = 0; int k = 0; k 0 k < l k l k++ k++ k {
				B[j][k] = sc.nextLong();
			} {
				B[j][k] = sc.nextLong();
			} B[j][k] = sc.nextLong() B[j][k] B[j] B j k sc.nextLong() sc.nextLong sc long[][] sum = new long[n][l]; sum new long[n][l] n l for (int p = 0; p < n; p++) {
			for (int q = 0; q < l; q++) {
				sum[p][q] = 0;
				for (int k = 0; k < m; k++) {
					sum[p][q] = sum[p][q] + A[p][k] * B[k][q];
				}
				if (q != l - 1) {
					System.out.print(sum[p][q] + " ");
				} else {
					System.out.print(sum[p][q]);
				}
			}
			System.out.println("");
		} int p = 0; int p = 0; p 0 p < n p n p++ p++ p {
			for (int q = 0; q < l; q++) {
				sum[p][q] = 0;
				for (int k = 0; k < m; k++) {
					sum[p][q] = sum[p][q] + A[p][k] * B[k][q];
				}
				if (q != l - 1) {
					System.out.print(sum[p][q] + " ");
				} else {
					System.out.print(sum[p][q]);
				}
			}
			System.out.println("");
		} {
			for (int q = 0; q < l; q++) {
				sum[p][q] = 0;
				for (int k = 0; k < m; k++) {
					sum[p][q] = sum[p][q] + A[p][k] * B[k][q];
				}
				if (q != l - 1) {
					System.out.print(sum[p][q] + " ");
				} else {
					System.out.print(sum[p][q]);
				}
			}
			System.out.println("");
		} for (int q = 0; q < l; q++) {
				sum[p][q] = 0;
				for (int k = 0; k < m; k++) {
					sum[p][q] = sum[p][q] + A[p][k] * B[k][q];
				}
				if (q != l - 1) {
					System.out.print(sum[p][q] + " ");
				} else {
					System.out.print(sum[p][q]);
				}
			} int q = 0; int q = 0; q 0 q < l q l q++ q++ q {
				sum[p][q] = 0;
				for (int k = 0; k < m; k++) {
					sum[p][q] = sum[p][q] + A[p][k] * B[k][q];
				}
				if (q != l - 1) {
					System.out.print(sum[p][q] + " ");
				} else {
					System.out.print(sum[p][q]);
				}
			} {
				sum[p][q] = 0;
				for (int k = 0; k < m; k++) {
					sum[p][q] = sum[p][q] + A[p][k] * B[k][q];
				}
				if (q != l - 1) {
					System.out.print(sum[p][q] + " ");
				} else {
					System.out.print(sum[p][q]);
				}
			} sum[p][q] = 0 sum[p][q] sum[p] sum p q 0 for (int k = 0; k < m; k++) {
					sum[p][q] = sum[p][q] + A[p][k] * B[k][q];
				} int k = 0; int k = 0; k 0 k < m k m k++ k++ k {
					sum[p][q] = sum[p][q] + A[p][k] * B[k][q];
				} {
					sum[p][q] = sum[p][q] + A[p][k] * B[k][q];
				} sum[p][q] = sum[p][q] + A[p][k] * B[k][q] sum[p][q] sum[p] sum p q sum[p][q] + A[p][k] * B[k][q] sum[p][q] sum[p] sum p q A[p][k] * B[k][q] A[p][k] A[p] A p k B[k][q] B[k] B k q if (q != l - 1) {
					System.out.print(sum[p][q] + " ");
				} else {
					System.out.print(sum[p][q]);
				} q != l - 1 q l - 1 l 1 {
					System.out.print(sum[p][q] + " ");
				} System.out.print(sum[p][q] + " ") System.out.print System.out System System.out sum[p][q] + " " sum[p][q] sum[p] sum p q " " {
					System.out.print(sum[p][q]);
				} System.out.print(sum[p][q]) System.out.print System.out System System.out sum[p][q] sum[p] sum p q System.out.println("") System.out.println System.out System System.out "" String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int l = sc.nextInt();

		long[][] A = new long[n][m];
		long[][] B = new long[m][l];

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				A[i][j] = sc.nextLong();
			}
		}
		for (int j = 0; j < m; j++) {
			for (int k = 0; k < l; k++) {
				B[j][k] = sc.nextLong();
			}
		}

		long[][] sum = new long[n][l];

		for (int p = 0; p < n; p++) {
			for (int q = 0; q < l; q++) {
				sum[p][q] = 0;
				for (int k = 0; k < m; k++) {
					sum[p][q] = sum[p][q] + A[p][k] * B[k][q];
				}
				if (q != l - 1) {
					System.out.print(sum[p][q] + " ");
				} else {
					System.out.print(sum[p][q]);
				}
			}
			System.out.println("");
		}

	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int l = sc.nextInt();

		long[][] A = new long[n][m];
		long[][] B = new long[m][l];

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				A[i][j] = sc.nextLong();
			}
		}
		for (int j = 0; j < m; j++) {
			for (int k = 0; k < l; k++) {
				B[j][k] = sc.nextLong();
			}
		}

		long[][] sum = new long[n][l];

		for (int p = 0; p < n; p++) {
			for (int q = 0; q < l; q++) {
				sum[p][q] = 0;
				for (int k = 0; k < m; k++) {
					sum[p][q] = sum[p][q] + A[p][k] * B[k][q];
				}
				if (q != l - 1) {
					System.out.print(sum[p][q] + " ");
				} else {
					System.out.print(sum[p][q]);
				}
			}
			System.out.println("");
		}

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int l = sc.nextInt();

		long[][] A = new long[n][m];
		long[][] B = new long[m][l];

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				A[i][j] = sc.nextLong();
			}
		}
		for (int j = 0; j < m; j++) {
			for (int k = 0; k < l; k++) {
				B[j][k] = sc.nextLong();
			}
		}

		long[][] sum = new long[n][l];

		for (int p = 0; p < n; p++) {
			for (int q = 0; q < l; q++) {
				sum[p][q] = 0;
				for (int k = 0; k < m; k++) {
					sum[p][q] = sum[p][q] + A[p][k] * B[k][q];
				}
				if (q != l - 1) {
					System.out.print(sum[p][q] + " ");
				} else {
					System.out.print(sum[p][q]);
				}
			}
			System.out.println("");
		}

	}

}

