import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String input_nml = "";
		String[] nml_data = new String[3];
		int n = 0;
		int m = 0;
		int l = 0;
		boolean judge = true;

		input_nml = sc.nextLine();
		nml_data = input_nml.split(" ");
		n = Integer.parseInt(nml_data[0]);
		m = Integer.parseInt(nml_data[1]);
		l = Integer.parseInt(nml_data[2]);

		if ((1 > n || n > 100) || (1 > m || m > 100) || (1 > l || l > 100)) {
			judge = false;
		}

		if (judge == true) {
			String input_AB = "";
			String[] A_in = new String[m];
			int[][] A_out = new int[n][m];
			String[] B_in = new String[l];
			int[][] B_out = new int[m][l];
			long[][] C_out = new long[n][l];
			String[] output_result = new String[n];

			// Aの入力とその値のチェック
			out: for (int i = 0; i < n; i++) {
				input_AB = sc.nextLine();
				A_in = input_AB.split(" ");

				for (int j = 0; j < m; j++) {
					A_out[i][j] = Integer.parseInt(A_in[j]);

					if (A_out[i][j] < 0 || A_out[i][j] > 10000) {
						judge = false;
						break out;
					}

				}

			}// Aの入力ここまで

			if (judge == true) {

				// Bの入力とその値のチェック
				out: for (int k = 0; k < m; k++) {
					input_AB = sc.nextLine();
					B_in = input_AB.split(" ");

					for (int p = 0; p < l; p++) {
						B_out[k][p] = Integer.parseInt(B_in[p]);

						if (B_out[k][p] < 0 || B_out[k][p] > 10000) {
							judge = false;
							break out;
						}

					}

				}

			}// Bの入力ここまで

			if (judge == true) {

				for (int i = 0; i < n; i++) {
					output_result[i] = "";
					for (int j = 0; j < l; j++) {

						for (int k = 0; k < m; k++) {
							C_out[i][j] += A_out[i][k] * B_out[k][j];

						}
						if (j == 0) {
							output_result[i] += "" + C_out[i][j];
						} else {
							output_result[i] += " " + C_out[i][j];
						}
						// System.out.print(C_out[i][j]);

					}

					System.out.println(output_result[i]);
					// System.out.println();
				}

			}

		}

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

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String input_nml = "";
		String[] nml_data = new String[3];
		int n = 0;
		int m = 0;
		int l = 0;
		boolean judge = true;

		input_nml = sc.nextLine();
		nml_data = input_nml.split(" ");
		n = Integer.parseInt(nml_data[0]);
		m = Integer.parseInt(nml_data[1]);
		l = Integer.parseInt(nml_data[2]);

		if ((1 > n || n > 100) || (1 > m || m > 100) || (1 > l || l > 100)) {
			judge = false;
		}

		if (judge == true) {
			String input_AB = "";
			String[] A_in = new String[m];
			int[][] A_out = new int[n][m];
			String[] B_in = new String[l];
			int[][] B_out = new int[m][l];
			long[][] C_out = new long[n][l];
			String[] output_result = new String[n];

			// Aの入力とその値のチェック
			out: for (int i = 0; i < n; i++) {
				input_AB = sc.nextLine();
				A_in = input_AB.split(" ");

				for (int j = 0; j < m; j++) {
					A_out[i][j] = Integer.parseInt(A_in[j]);

					if (A_out[i][j] < 0 || A_out[i][j] > 10000) {
						judge = false;
						break out;
					}

				}

			}// Aの入力ここまで

			if (judge == true) {

				// Bの入力とその値のチェック
				out: for (int k = 0; k < m; k++) {
					input_AB = sc.nextLine();
					B_in = input_AB.split(" ");

					for (int p = 0; p < l; p++) {
						B_out[k][p] = Integer.parseInt(B_in[p]);

						if (B_out[k][p] < 0 || B_out[k][p] > 10000) {
							judge = false;
							break out;
						}

					}

				}

			}// Bの入力ここまで

			if (judge == true) {

				for (int i = 0; i < n; i++) {
					output_result[i] = "";
					for (int j = 0; j < l; j++) {

						for (int k = 0; k < m; k++) {
							C_out[i][j] += A_out[i][k] * B_out[k][j];

						}
						if (j == 0) {
							output_result[i] += "" + C_out[i][j];
						} else {
							output_result[i] += " " + C_out[i][j];
						}
						// System.out.print(C_out[i][j]);

					}

					System.out.println(output_result[i]);
					// System.out.println();
				}

			}

		}

	}
} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String input_nml = "";
		String[] nml_data = new String[3];
		int n = 0;
		int m = 0;
		int l = 0;
		boolean judge = true;

		input_nml = sc.nextLine();
		nml_data = input_nml.split(" ");
		n = Integer.parseInt(nml_data[0]);
		m = Integer.parseInt(nml_data[1]);
		l = Integer.parseInt(nml_data[2]);

		if ((1 > n || n > 100) || (1 > m || m > 100) || (1 > l || l > 100)) {
			judge = false;
		}

		if (judge == true) {
			String input_AB = "";
			String[] A_in = new String[m];
			int[][] A_out = new int[n][m];
			String[] B_in = new String[l];
			int[][] B_out = new int[m][l];
			long[][] C_out = new long[n][l];
			String[] output_result = new String[n];

			// Aの入力とその値のチェック
			out: for (int i = 0; i < n; i++) {
				input_AB = sc.nextLine();
				A_in = input_AB.split(" ");

				for (int j = 0; j < m; j++) {
					A_out[i][j] = Integer.parseInt(A_in[j]);

					if (A_out[i][j] < 0 || A_out[i][j] > 10000) {
						judge = false;
						break out;
					}

				}

			}// Aの入力ここまで

			if (judge == true) {

				// Bの入力とその値のチェック
				out: for (int k = 0; k < m; k++) {
					input_AB = sc.nextLine();
					B_in = input_AB.split(" ");

					for (int p = 0; p < l; p++) {
						B_out[k][p] = Integer.parseInt(B_in[p]);

						if (B_out[k][p] < 0 || B_out[k][p] > 10000) {
							judge = false;
							break out;
						}

					}

				}

			}// Bの入力ここまで

			if (judge == true) {

				for (int i = 0; i < n; i++) {
					output_result[i] = "";
					for (int j = 0; j < l; j++) {

						for (int k = 0; k < m; k++) {
							C_out[i][j] += A_out[i][k] * B_out[k][j];

						}
						if (j == 0) {
							output_result[i] += "" + C_out[i][j];
						} else {
							output_result[i] += " " + C_out[i][j];
						}
						// System.out.print(C_out[i][j]);

					}

					System.out.println(output_result[i]);
					// System.out.println();
				}

			}

		}

	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String input_nml = "";
		String[] nml_data = new String[3];
		int n = 0;
		int m = 0;
		int l = 0;
		boolean judge = true;

		input_nml = sc.nextLine();
		nml_data = input_nml.split(" ");
		n = Integer.parseInt(nml_data[0]);
		m = Integer.parseInt(nml_data[1]);
		l = Integer.parseInt(nml_data[2]);

		if ((1 > n || n > 100) || (1 > m || m > 100) || (1 > l || l > 100)) {
			judge = false;
		}

		if (judge == true) {
			String input_AB = "";
			String[] A_in = new String[m];
			int[][] A_out = new int[n][m];
			String[] B_in = new String[l];
			int[][] B_out = new int[m][l];
			long[][] C_out = new long[n][l];
			String[] output_result = new String[n];

			// Aの入力とその値のチェック
			out: for (int i = 0; i < n; i++) {
				input_AB = sc.nextLine();
				A_in = input_AB.split(" ");

				for (int j = 0; j < m; j++) {
					A_out[i][j] = Integer.parseInt(A_in[j]);

					if (A_out[i][j] < 0 || A_out[i][j] > 10000) {
						judge = false;
						break out;
					}

				}

			}// Aの入力ここまで

			if (judge == true) {

				// Bの入力とその値のチェック
				out: for (int k = 0; k < m; k++) {
					input_AB = sc.nextLine();
					B_in = input_AB.split(" ");

					for (int p = 0; p < l; p++) {
						B_out[k][p] = Integer.parseInt(B_in[p]);

						if (B_out[k][p] < 0 || B_out[k][p] > 10000) {
							judge = false;
							break out;
						}

					}

				}

			}// Bの入力ここまで

			if (judge == true) {

				for (int i = 0; i < n; i++) {
					output_result[i] = "";
					for (int j = 0; j < l; j++) {

						for (int k = 0; k < m; k++) {
							C_out[i][j] += A_out[i][k] * B_out[k][j];

						}
						if (j == 0) {
							output_result[i] += "" + C_out[i][j];
						} else {
							output_result[i] += " " + C_out[i][j];
						}
						// System.out.print(C_out[i][j]);

					}

					System.out.println(output_result[i]);
					// System.out.println();
				}

			}

		}

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String input_nml = ""; input_nml "" String[] nml_data = new String[3]; nml_data new String[3] 3 int n = 0; n 0 int m = 0; m 0 int l = 0; l 0 boolean judge = true; judge true input_nml = sc.nextLine() input_nml sc.nextLine() sc.nextLine sc nml_data = input_nml.split(" ") nml_data input_nml.split(" ") input_nml.split input_nml " " n = Integer.parseInt(nml_data[0]) n Integer.parseInt(nml_data[0]) Integer.parseInt Integer nml_data[0] nml_data 0 m = Integer.parseInt(nml_data[1]) m Integer.parseInt(nml_data[1]) Integer.parseInt Integer nml_data[1] nml_data 1 l = Integer.parseInt(nml_data[2]) l Integer.parseInt(nml_data[2]) Integer.parseInt Integer nml_data[2] nml_data 2 if ((1 > n || n > 100) || (1 > m || m > 100) || (1 > l || l > 100)) {
			judge = false;
		} (1 > n || n > 100) || (1 > m || m > 100) || (1 > l || l > 100) (1 > n || n > 100) || (1 > m || m > 100) || (1 > l || l > 100) (1 > n || n > 100) 1 > n 1 n n > 100 n 100 (1 > m || m > 100) 1 > m 1 m m > 100 m 100 (1 > l || l > 100) 1 > l 1 l l > 100 l 100 {
			judge = false;
		} judge = false judge false if (judge == true) {
			String input_AB = "";
			String[] A_in = new String[m];
			int[][] A_out = new int[n][m];
			String[] B_in = new String[l];
			int[][] B_out = new int[m][l];
			long[][] C_out = new long[n][l];
			String[] output_result = new String[n];

			// Aの入力とその値のチェック
			out: for (int i = 0; i < n; i++) {
				input_AB = sc.nextLine();
				A_in = input_AB.split(" ");

				for (int j = 0; j < m; j++) {
					A_out[i][j] = Integer.parseInt(A_in[j]);

					if (A_out[i][j] < 0 || A_out[i][j] > 10000) {
						judge = false;
						break out;
					}

				}

			}// Aの入力ここまで

			if (judge == true) {

				// Bの入力とその値のチェック
				out: for (int k = 0; k < m; k++) {
					input_AB = sc.nextLine();
					B_in = input_AB.split(" ");

					for (int p = 0; p < l; p++) {
						B_out[k][p] = Integer.parseInt(B_in[p]);

						if (B_out[k][p] < 0 || B_out[k][p] > 10000) {
							judge = false;
							break out;
						}

					}

				}

			}// Bの入力ここまで

			if (judge == true) {

				for (int i = 0; i < n; i++) {
					output_result[i] = "";
					for (int j = 0; j < l; j++) {

						for (int k = 0; k < m; k++) {
							C_out[i][j] += A_out[i][k] * B_out[k][j];

						}
						if (j == 0) {
							output_result[i] += "" + C_out[i][j];
						} else {
							output_result[i] += " " + C_out[i][j];
						}
						// System.out.print(C_out[i][j]);

					}

					System.out.println(output_result[i]);
					// System.out.println();
				}

			}

		} judge == true judge true {
			String input_AB = "";
			String[] A_in = new String[m];
			int[][] A_out = new int[n][m];
			String[] B_in = new String[l];
			int[][] B_out = new int[m][l];
			long[][] C_out = new long[n][l];
			String[] output_result = new String[n];

			// Aの入力とその値のチェック
			out: for (int i = 0; i < n; i++) {
				input_AB = sc.nextLine();
				A_in = input_AB.split(" ");

				for (int j = 0; j < m; j++) {
					A_out[i][j] = Integer.parseInt(A_in[j]);

					if (A_out[i][j] < 0 || A_out[i][j] > 10000) {
						judge = false;
						break out;
					}

				}

			}// Aの入力ここまで

			if (judge == true) {

				// Bの入力とその値のチェック
				out: for (int k = 0; k < m; k++) {
					input_AB = sc.nextLine();
					B_in = input_AB.split(" ");

					for (int p = 0; p < l; p++) {
						B_out[k][p] = Integer.parseInt(B_in[p]);

						if (B_out[k][p] < 0 || B_out[k][p] > 10000) {
							judge = false;
							break out;
						}

					}

				}

			}// Bの入力ここまで

			if (judge == true) {

				for (int i = 0; i < n; i++) {
					output_result[i] = "";
					for (int j = 0; j < l; j++) {

						for (int k = 0; k < m; k++) {
							C_out[i][j] += A_out[i][k] * B_out[k][j];

						}
						if (j == 0) {
							output_result[i] += "" + C_out[i][j];
						} else {
							output_result[i] += " " + C_out[i][j];
						}
						// System.out.print(C_out[i][j]);

					}

					System.out.println(output_result[i]);
					// System.out.println();
				}

			}

		} String input_AB = ""; input_AB "" String[] A_in = new String[m]; A_in new String[m] m int[][] A_out = new int[n][m]; A_out new int[n][m] n m String[] B_in = new String[l]; B_in new String[l] l int[][] B_out = new int[m][l]; B_out new int[m][l] m l long[][] C_out = new long[n][l]; C_out new long[n][l] n l String[] output_result = new String[n]; output_result new String[n] n if (judge == true) {

				// Bの入力とその値のチェック
				out: for (int k = 0; k < m; k++) {
					input_AB = sc.nextLine();
					B_in = input_AB.split(" ");

					for (int p = 0; p < l; p++) {
						B_out[k][p] = Integer.parseInt(B_in[p]);

						if (B_out[k][p] < 0 || B_out[k][p] > 10000) {
							judge = false;
							break out;
						}

					}

				}

			}// Bの入力ここまで judge == true judge true {

				// Bの入力とその値のチェック
				out: for (int k = 0; k < m; k++) {
					input_AB = sc.nextLine();
					B_in = input_AB.split(" ");

					for (int p = 0; p < l; p++) {
						B_out[k][p] = Integer.parseInt(B_in[p]);

						if (B_out[k][p] < 0 || B_out[k][p] > 10000) {
							judge = false;
							break out;
						}

					}

				}

			} if (judge == true) {

				for (int i = 0; i < n; i++) {
					output_result[i] = "";
					for (int j = 0; j < l; j++) {

						for (int k = 0; k < m; k++) {
							C_out[i][j] += A_out[i][k] * B_out[k][j];

						}
						if (j == 0) {
							output_result[i] += "" + C_out[i][j];
						} else {
							output_result[i] += " " + C_out[i][j];
						}
						// System.out.print(C_out[i][j]);

					}

					System.out.println(output_result[i]);
					// System.out.println();
				}

			} judge == true judge true {

				for (int i = 0; i < n; i++) {
					output_result[i] = "";
					for (int j = 0; j < l; j++) {

						for (int k = 0; k < m; k++) {
							C_out[i][j] += A_out[i][k] * B_out[k][j];

						}
						if (j == 0) {
							output_result[i] += "" + C_out[i][j];
						} else {
							output_result[i] += " " + C_out[i][j];
						}
						// System.out.print(C_out[i][j]);

					}

					System.out.println(output_result[i]);
					// System.out.println();
				}

			} for (int i = 0; i < n; i++) {
					output_result[i] = "";
					for (int j = 0; j < l; j++) {

						for (int k = 0; k < m; k++) {
							C_out[i][j] += A_out[i][k] * B_out[k][j];

						}
						if (j == 0) {
							output_result[i] += "" + C_out[i][j];
						} else {
							output_result[i] += " " + C_out[i][j];
						}
						// System.out.print(C_out[i][j]);

					}

					System.out.println(output_result[i]);
					// System.out.println();
				} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
					output_result[i] = "";
					for (int j = 0; j < l; j++) {

						for (int k = 0; k < m; k++) {
							C_out[i][j] += A_out[i][k] * B_out[k][j];

						}
						if (j == 0) {
							output_result[i] += "" + C_out[i][j];
						} else {
							output_result[i] += " " + C_out[i][j];
						}
						// System.out.print(C_out[i][j]);

					}

					System.out.println(output_result[i]);
					// System.out.println();
				} {
					output_result[i] = "";
					for (int j = 0; j < l; j++) {

						for (int k = 0; k < m; k++) {
							C_out[i][j] += A_out[i][k] * B_out[k][j];

						}
						if (j == 0) {
							output_result[i] += "" + C_out[i][j];
						} else {
							output_result[i] += " " + C_out[i][j];
						}
						// System.out.print(C_out[i][j]);

					}

					System.out.println(output_result[i]);
					// System.out.println();
				} output_result[i] = "" output_result[i] output_result i "" for (int j = 0; j < l; j++) {

						for (int k = 0; k < m; k++) {
							C_out[i][j] += A_out[i][k] * B_out[k][j];

						}
						if (j == 0) {
							output_result[i] += "" + C_out[i][j];
						} else {
							output_result[i] += " " + C_out[i][j];
						}
						// System.out.print(C_out[i][j]);

					} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {

						for (int k = 0; k < m; k++) {
							C_out[i][j] += A_out[i][k] * B_out[k][j];

						}
						if (j == 0) {
							output_result[i] += "" + C_out[i][j];
						} else {
							output_result[i] += " " + C_out[i][j];
						}
						// System.out.print(C_out[i][j]);

					} {

						for (int k = 0; k < m; k++) {
							C_out[i][j] += A_out[i][k] * B_out[k][j];

						}
						if (j == 0) {
							output_result[i] += "" + C_out[i][j];
						} else {
							output_result[i] += " " + C_out[i][j];
						}
						// System.out.print(C_out[i][j]);

					} for (int k = 0; k < m; k++) {
							C_out[i][j] += A_out[i][k] * B_out[k][j];

						} int k = 0; int k = 0; k 0 k < m k m k++ k++ k {
							C_out[i][j] += A_out[i][k] * B_out[k][j];

						} {
							C_out[i][j] += A_out[i][k] * B_out[k][j];

						} C_out[i][j] += A_out[i][k] * B_out[k][j] C_out[i][j] C_out[i] C_out i j A_out[i][k] * B_out[k][j] A_out[i][k] A_out[i] A_out i k B_out[k][j] B_out[k] B_out k j if (j == 0) {
							output_result[i] += "" + C_out[i][j];
						} else {
							output_result[i] += " " + C_out[i][j];
						} j == 0 j 0 {
							output_result[i] += "" + C_out[i][j];
						} output_result[i] += "" + C_out[i][j] output_result[i] output_result i "" + C_out[i][j] "" C_out[i][j] C_out[i] C_out i j {
							output_result[i] += " " + C_out[i][j];
						} output_result[i] += " " + C_out[i][j] output_result[i] output_result i " " + C_out[i][j] " " C_out[i][j] C_out[i] C_out i j System.out.println(output_result[i]) System.out.println System.out System System.out output_result[i] output_result i String[] args args public class Main{

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String input_nml = "";
		String[] nml_data = new String[3];
		int n = 0;
		int m = 0;
		int l = 0;
		boolean judge = true;

		input_nml = sc.nextLine();
		nml_data = input_nml.split(" ");
		n = Integer.parseInt(nml_data[0]);
		m = Integer.parseInt(nml_data[1]);
		l = Integer.parseInt(nml_data[2]);

		if ((1 > n || n > 100) || (1 > m || m > 100) || (1 > l || l > 100)) {
			judge = false;
		}

		if (judge == true) {
			String input_AB = "";
			String[] A_in = new String[m];
			int[][] A_out = new int[n][m];
			String[] B_in = new String[l];
			int[][] B_out = new int[m][l];
			long[][] C_out = new long[n][l];
			String[] output_result = new String[n];

			// Aの入力とその値のチェック
			out: for (int i = 0; i < n; i++) {
				input_AB = sc.nextLine();
				A_in = input_AB.split(" ");

				for (int j = 0; j < m; j++) {
					A_out[i][j] = Integer.parseInt(A_in[j]);

					if (A_out[i][j] < 0 || A_out[i][j] > 10000) {
						judge = false;
						break out;
					}

				}

			}// Aの入力ここまで

			if (judge == true) {

				// Bの入力とその値のチェック
				out: for (int k = 0; k < m; k++) {
					input_AB = sc.nextLine();
					B_in = input_AB.split(" ");

					for (int p = 0; p < l; p++) {
						B_out[k][p] = Integer.parseInt(B_in[p]);

						if (B_out[k][p] < 0 || B_out[k][p] > 10000) {
							judge = false;
							break out;
						}

					}

				}

			}// Bの入力ここまで

			if (judge == true) {

				for (int i = 0; i < n; i++) {
					output_result[i] = "";
					for (int j = 0; j < l; j++) {

						for (int k = 0; k < m; k++) {
							C_out[i][j] += A_out[i][k] * B_out[k][j];

						}
						if (j == 0) {
							output_result[i] += "" + C_out[i][j];
						} else {
							output_result[i] += " " + C_out[i][j];
						}
						// System.out.print(C_out[i][j]);

					}

					System.out.println(output_result[i]);
					// System.out.println();
				}

			}

		}

	}
} public class Main{

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String input_nml = "";
		String[] nml_data = new String[3];
		int n = 0;
		int m = 0;
		int l = 0;
		boolean judge = true;

		input_nml = sc.nextLine();
		nml_data = input_nml.split(" ");
		n = Integer.parseInt(nml_data[0]);
		m = Integer.parseInt(nml_data[1]);
		l = Integer.parseInt(nml_data[2]);

		if ((1 > n || n > 100) || (1 > m || m > 100) || (1 > l || l > 100)) {
			judge = false;
		}

		if (judge == true) {
			String input_AB = "";
			String[] A_in = new String[m];
			int[][] A_out = new int[n][m];
			String[] B_in = new String[l];
			int[][] B_out = new int[m][l];
			long[][] C_out = new long[n][l];
			String[] output_result = new String[n];

			// Aの入力とその値のチェック
			out: for (int i = 0; i < n; i++) {
				input_AB = sc.nextLine();
				A_in = input_AB.split(" ");

				for (int j = 0; j < m; j++) {
					A_out[i][j] = Integer.parseInt(A_in[j]);

					if (A_out[i][j] < 0 || A_out[i][j] > 10000) {
						judge = false;
						break out;
					}

				}

			}// Aの入力ここまで

			if (judge == true) {

				// Bの入力とその値のチェック
				out: for (int k = 0; k < m; k++) {
					input_AB = sc.nextLine();
					B_in = input_AB.split(" ");

					for (int p = 0; p < l; p++) {
						B_out[k][p] = Integer.parseInt(B_in[p]);

						if (B_out[k][p] < 0 || B_out[k][p] > 10000) {
							judge = false;
							break out;
						}

					}

				}

			}// Bの入力ここまで

			if (judge == true) {

				for (int i = 0; i < n; i++) {
					output_result[i] = "";
					for (int j = 0; j < l; j++) {

						for (int k = 0; k < m; k++) {
							C_out[i][j] += A_out[i][k] * B_out[k][j];

						}
						if (j == 0) {
							output_result[i] += "" + C_out[i][j];
						} else {
							output_result[i] += " " + C_out[i][j];
						}
						// System.out.print(C_out[i][j]);

					}

					System.out.println(output_result[i]);
					// System.out.println();
				}

			}

		}

	}
} Main
import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String input_nml = "";
		String[] nml_data = new String[3];
		int n = 0;
		int m = 0;
		int l = 0;
		boolean judge = true;

		input_nml = sc.nextLine();
		nml_data = input_nml.split(" ");
		n = Integer.parseInt(nml_data[0]);
		m = Integer.parseInt(nml_data[1]);
		l = Integer.parseInt(nml_data[2]);

		if ((1 > n || n > 100) || (1 > m || m > 100) || (1 > l || l > 100)) {
			judge = false;
		}

		if (judge == true) {
			String input_AB = "";
			String[] A_in = new String[m];
			int[][] A_out = new int[n][m];
			String[] B_in = new String[l];
			int[][] B_out = new int[m][l];
			long[][] C_out = new long[n][l];
			String[] output_result = new String[n];

			// Aの入力とその値のチェック
			out: for (int i = 0; i < n; i++) {
				input_AB = sc.nextLine();
				A_in = input_AB.split(" ");

				for (int j = 0; j < m; j++) {
					A_out[i][j] = Integer.parseInt(A_in[j]);

					if (A_out[i][j] < 0 || A_out[i][j] > 10000) {
						judge = false;
						break out;
					}

				}

			}// Aの入力ここまで

			if (judge == true) {

				// Bの入力とその値のチェック
				out: for (int k = 0; k < m; k++) {
					input_AB = sc.nextLine();
					B_in = input_AB.split(" ");

					for (int p = 0; p < l; p++) {
						B_out[k][p] = Integer.parseInt(B_in[p]);

						if (B_out[k][p] < 0 || B_out[k][p] > 10000) {
							judge = false;
							break out;
						}

					}

				}

			}// Bの入力ここまで

			if (judge == true) {

				for (int i = 0; i < n; i++) {
					output_result[i] = "";
					for (int j = 0; j < l; j++) {

						for (int k = 0; k < m; k++) {
							C_out[i][j] += A_out[i][k] * B_out[k][j];

						}
						if (j == 0) {
							output_result[i] += "" + C_out[i][j];
						} else {
							output_result[i] += " " + C_out[i][j];
						}
						// System.out.print(C_out[i][j]);

					}

					System.out.println(output_result[i]);
					// System.out.println();
				}

			}

		}

	}
}

