import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String line1 = sc.nextLine();
		String[] string1 = line1.split(" ");
		int n = Integer.parseInt(string1[0]);
		int m = Integer.parseInt(string1[1]);
		int l = Integer.parseInt(string1[2]);

		String[][] gyouA = new String[n][m];
		int[][] A = new int[n][m];
		for (int i = 0; i < n; i++) {
			String line2 = sc.nextLine();
			for (int j = 0; j < m; j++) {
				String[] string = line2.split(" ");
				gyouA[i][j] = string[j];
				A[i][j] = Integer.parseInt(gyouA[i][j]);
			}

		}

		String[][] gyouB = new String[m][l];
		int[][] B = new int[m][l];
		for (int i = 0; i < m; i++) {
			String line3 = sc.nextLine();
			for (int j = 0; j < l; j++) {
				String[] string = line3.split(" ");
				gyouB[i][j] = string[j];
				B[i][j] = Integer.parseInt(gyouB[i][j]);
			}

		}

		long AB = 0;
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				long C = 0;
				for (int k = 0; k < m; k++) {
					AB = A[i][k] * B[k][j];
					C += AB;
				}
				if (j == l - 1) {
					System.out.print(C);

				} else {
					System.out.print(C + " ");

				}
			}
			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);

		String line1 = sc.nextLine();
		String[] string1 = line1.split(" ");
		int n = Integer.parseInt(string1[0]);
		int m = Integer.parseInt(string1[1]);
		int l = Integer.parseInt(string1[2]);

		String[][] gyouA = new String[n][m];
		int[][] A = new int[n][m];
		for (int i = 0; i < n; i++) {
			String line2 = sc.nextLine();
			for (int j = 0; j < m; j++) {
				String[] string = line2.split(" ");
				gyouA[i][j] = string[j];
				A[i][j] = Integer.parseInt(gyouA[i][j]);
			}

		}

		String[][] gyouB = new String[m][l];
		int[][] B = new int[m][l];
		for (int i = 0; i < m; i++) {
			String line3 = sc.nextLine();
			for (int j = 0; j < l; j++) {
				String[] string = line3.split(" ");
				gyouB[i][j] = string[j];
				B[i][j] = Integer.parseInt(gyouB[i][j]);
			}

		}

		long AB = 0;
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				long C = 0;
				for (int k = 0; k < m; k++) {
					AB = A[i][k] * B[k][j];
					C += AB;
				}
				if (j == l - 1) {
					System.out.print(C);

				} else {
					System.out.print(C + " ");

				}
			}
			System.out.println();
		}
	}
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String line1 = sc.nextLine();
		String[] string1 = line1.split(" ");
		int n = Integer.parseInt(string1[0]);
		int m = Integer.parseInt(string1[1]);
		int l = Integer.parseInt(string1[2]);

		String[][] gyouA = new String[n][m];
		int[][] A = new int[n][m];
		for (int i = 0; i < n; i++) {
			String line2 = sc.nextLine();
			for (int j = 0; j < m; j++) {
				String[] string = line2.split(" ");
				gyouA[i][j] = string[j];
				A[i][j] = Integer.parseInt(gyouA[i][j]);
			}

		}

		String[][] gyouB = new String[m][l];
		int[][] B = new int[m][l];
		for (int i = 0; i < m; i++) {
			String line3 = sc.nextLine();
			for (int j = 0; j < l; j++) {
				String[] string = line3.split(" ");
				gyouB[i][j] = string[j];
				B[i][j] = Integer.parseInt(gyouB[i][j]);
			}

		}

		long AB = 0;
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				long C = 0;
				for (int k = 0; k < m; k++) {
					AB = A[i][k] * B[k][j];
					C += AB;
				}
				if (j == l - 1) {
					System.out.print(C);

				} else {
					System.out.print(C + " ");

				}
			}
			System.out.println();
		}
	} main {

		Scanner sc = new Scanner(System.in);

		String line1 = sc.nextLine();
		String[] string1 = line1.split(" ");
		int n = Integer.parseInt(string1[0]);
		int m = Integer.parseInt(string1[1]);
		int l = Integer.parseInt(string1[2]);

		String[][] gyouA = new String[n][m];
		int[][] A = new int[n][m];
		for (int i = 0; i < n; i++) {
			String line2 = sc.nextLine();
			for (int j = 0; j < m; j++) {
				String[] string = line2.split(" ");
				gyouA[i][j] = string[j];
				A[i][j] = Integer.parseInt(gyouA[i][j]);
			}

		}

		String[][] gyouB = new String[m][l];
		int[][] B = new int[m][l];
		for (int i = 0; i < m; i++) {
			String line3 = sc.nextLine();
			for (int j = 0; j < l; j++) {
				String[] string = line3.split(" ");
				gyouB[i][j] = string[j];
				B[i][j] = Integer.parseInt(gyouB[i][j]);
			}

		}

		long AB = 0;
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				long C = 0;
				for (int k = 0; k < m; k++) {
					AB = A[i][k] * B[k][j];
					C += AB;
				}
				if (j == l - 1) {
					System.out.print(C);

				} else {
					System.out.print(C + " ");

				}
			}
			System.out.println();
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String line1 = sc.nextLine(); line1 sc.nextLine() sc.nextLine sc String[] string1 = line1.split(" "); string1 line1.split(" ") line1.split line1 " " int n = Integer.parseInt(string1[0]); n Integer.parseInt(string1[0]) Integer.parseInt Integer string1[0] string1 0 int m = Integer.parseInt(string1[1]); m Integer.parseInt(string1[1]) Integer.parseInt Integer string1[1] string1 1 int l = Integer.parseInt(string1[2]); l Integer.parseInt(string1[2]) Integer.parseInt Integer string1[2] string1 2 String[][] gyouA = new String[n][m]; gyouA new String[n][m] n m int[][] A = new int[n][m]; A new int[n][m] n m for (int i = 0; i < n; i++) {
			String line2 = sc.nextLine();
			for (int j = 0; j < m; j++) {
				String[] string = line2.split(" ");
				gyouA[i][j] = string[j];
				A[i][j] = Integer.parseInt(gyouA[i][j]);
			}

		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			String line2 = sc.nextLine();
			for (int j = 0; j < m; j++) {
				String[] string = line2.split(" ");
				gyouA[i][j] = string[j];
				A[i][j] = Integer.parseInt(gyouA[i][j]);
			}

		} {
			String line2 = sc.nextLine();
			for (int j = 0; j < m; j++) {
				String[] string = line2.split(" ");
				gyouA[i][j] = string[j];
				A[i][j] = Integer.parseInt(gyouA[i][j]);
			}

		} String line2 = sc.nextLine(); line2 sc.nextLine() sc.nextLine sc for (int j = 0; j < m; j++) {
				String[] string = line2.split(" ");
				gyouA[i][j] = string[j];
				A[i][j] = Integer.parseInt(gyouA[i][j]);
			} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
				String[] string = line2.split(" ");
				gyouA[i][j] = string[j];
				A[i][j] = Integer.parseInt(gyouA[i][j]);
			} {
				String[] string = line2.split(" ");
				gyouA[i][j] = string[j];
				A[i][j] = Integer.parseInt(gyouA[i][j]);
			} String[] string = line2.split(" "); string line2.split(" ") line2.split line2 " " gyouA[i][j] = string[j] gyouA[i][j] gyouA[i] gyouA i j string[j] string j A[i][j] = Integer.parseInt(gyouA[i][j]) A[i][j] A[i] A i j Integer.parseInt(gyouA[i][j]) Integer.parseInt Integer gyouA[i][j] gyouA[i] gyouA i j String[][] gyouB = new String[m][l]; gyouB new String[m][l] m l int[][] B = new int[m][l]; B new int[m][l] m l for (int i = 0; i < m; i++) {
			String line3 = sc.nextLine();
			for (int j = 0; j < l; j++) {
				String[] string = line3.split(" ");
				gyouB[i][j] = string[j];
				B[i][j] = Integer.parseInt(gyouB[i][j]);
			}

		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
			String line3 = sc.nextLine();
			for (int j = 0; j < l; j++) {
				String[] string = line3.split(" ");
				gyouB[i][j] = string[j];
				B[i][j] = Integer.parseInt(gyouB[i][j]);
			}

		} {
			String line3 = sc.nextLine();
			for (int j = 0; j < l; j++) {
				String[] string = line3.split(" ");
				gyouB[i][j] = string[j];
				B[i][j] = Integer.parseInt(gyouB[i][j]);
			}

		} String line3 = sc.nextLine(); line3 sc.nextLine() sc.nextLine sc for (int j = 0; j < l; j++) {
				String[] string = line3.split(" ");
				gyouB[i][j] = string[j];
				B[i][j] = Integer.parseInt(gyouB[i][j]);
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				String[] string = line3.split(" ");
				gyouB[i][j] = string[j];
				B[i][j] = Integer.parseInt(gyouB[i][j]);
			} {
				String[] string = line3.split(" ");
				gyouB[i][j] = string[j];
				B[i][j] = Integer.parseInt(gyouB[i][j]);
			} String[] string = line3.split(" "); string line3.split(" ") line3.split line3 " " gyouB[i][j] = string[j] gyouB[i][j] gyouB[i] gyouB i j string[j] string j B[i][j] = Integer.parseInt(gyouB[i][j]) B[i][j] B[i] B i j Integer.parseInt(gyouB[i][j]) Integer.parseInt Integer gyouB[i][j] gyouB[i] gyouB i j long AB = 0; AB 0 for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				long C = 0;
				for (int k = 0; k < m; k++) {
					AB = A[i][k] * B[k][j];
					C += AB;
				}
				if (j == l - 1) {
					System.out.print(C);

				} else {
					System.out.print(C + " ");

				}
			}
			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 C = 0;
				for (int k = 0; k < m; k++) {
					AB = A[i][k] * B[k][j];
					C += AB;
				}
				if (j == l - 1) {
					System.out.print(C);

				} else {
					System.out.print(C + " ");

				}
			}
			System.out.println();
		} {
			for (int j = 0; j < l; j++) {
				long C = 0;
				for (int k = 0; k < m; k++) {
					AB = A[i][k] * B[k][j];
					C += AB;
				}
				if (j == l - 1) {
					System.out.print(C);

				} else {
					System.out.print(C + " ");

				}
			}
			System.out.println();
		} for (int j = 0; j < l; j++) {
				long C = 0;
				for (int k = 0; k < m; k++) {
					AB = A[i][k] * B[k][j];
					C += AB;
				}
				if (j == l - 1) {
					System.out.print(C);

				} else {
					System.out.print(C + " ");

				}
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				long C = 0;
				for (int k = 0; k < m; k++) {
					AB = A[i][k] * B[k][j];
					C += AB;
				}
				if (j == l - 1) {
					System.out.print(C);

				} else {
					System.out.print(C + " ");

				}
			} {
				long C = 0;
				for (int k = 0; k < m; k++) {
					AB = A[i][k] * B[k][j];
					C += AB;
				}
				if (j == l - 1) {
					System.out.print(C);

				} else {
					System.out.print(C + " ");

				}
			} long C = 0; C 0 for (int k = 0; k < m; k++) {
					AB = A[i][k] * B[k][j];
					C += AB;
				} int k = 0; int k = 0; k 0 k < m k m k++ k++ k {
					AB = A[i][k] * B[k][j];
					C += AB;
				} {
					AB = A[i][k] * B[k][j];
					C += AB;
				} AB = A[i][k] * B[k][j] AB A[i][k] * B[k][j] A[i][k] A[i] A i k B[k][j] B[k] B k j C += AB C AB if (j == l - 1) {
					System.out.print(C);

				} else {
					System.out.print(C + " ");

				} j == l - 1 j l - 1 l 1 {
					System.out.print(C);

				} System.out.print(C) System.out.print System.out System System.out C {
					System.out.print(C + " ");

				} System.out.print(C + " ") System.out.print System.out System System.out C + " " C " " 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);

		String line1 = sc.nextLine();
		String[] string1 = line1.split(" ");
		int n = Integer.parseInt(string1[0]);
		int m = Integer.parseInt(string1[1]);
		int l = Integer.parseInt(string1[2]);

		String[][] gyouA = new String[n][m];
		int[][] A = new int[n][m];
		for (int i = 0; i < n; i++) {
			String line2 = sc.nextLine();
			for (int j = 0; j < m; j++) {
				String[] string = line2.split(" ");
				gyouA[i][j] = string[j];
				A[i][j] = Integer.parseInt(gyouA[i][j]);
			}

		}

		String[][] gyouB = new String[m][l];
		int[][] B = new int[m][l];
		for (int i = 0; i < m; i++) {
			String line3 = sc.nextLine();
			for (int j = 0; j < l; j++) {
				String[] string = line3.split(" ");
				gyouB[i][j] = string[j];
				B[i][j] = Integer.parseInt(gyouB[i][j]);
			}

		}

		long AB = 0;
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				long C = 0;
				for (int k = 0; k < m; k++) {
					AB = A[i][k] * B[k][j];
					C += AB;
				}
				if (j == l - 1) {
					System.out.print(C);

				} else {
					System.out.print(C + " ");

				}
			}
			System.out.println();
		}
	}
} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String line1 = sc.nextLine();
		String[] string1 = line1.split(" ");
		int n = Integer.parseInt(string1[0]);
		int m = Integer.parseInt(string1[1]);
		int l = Integer.parseInt(string1[2]);

		String[][] gyouA = new String[n][m];
		int[][] A = new int[n][m];
		for (int i = 0; i < n; i++) {
			String line2 = sc.nextLine();
			for (int j = 0; j < m; j++) {
				String[] string = line2.split(" ");
				gyouA[i][j] = string[j];
				A[i][j] = Integer.parseInt(gyouA[i][j]);
			}

		}

		String[][] gyouB = new String[m][l];
		int[][] B = new int[m][l];
		for (int i = 0; i < m; i++) {
			String line3 = sc.nextLine();
			for (int j = 0; j < l; j++) {
				String[] string = line3.split(" ");
				gyouB[i][j] = string[j];
				B[i][j] = Integer.parseInt(gyouB[i][j]);
			}

		}

		long AB = 0;
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				long C = 0;
				for (int k = 0; k < m; k++) {
					AB = A[i][k] * B[k][j];
					C += AB;
				}
				if (j == l - 1) {
					System.out.print(C);

				} else {
					System.out.print(C + " ");

				}
			}
			System.out.println();
		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String line1 = sc.nextLine();
		String[] string1 = line1.split(" ");
		int n = Integer.parseInt(string1[0]);
		int m = Integer.parseInt(string1[1]);
		int l = Integer.parseInt(string1[2]);

		String[][] gyouA = new String[n][m];
		int[][] A = new int[n][m];
		for (int i = 0; i < n; i++) {
			String line2 = sc.nextLine();
			for (int j = 0; j < m; j++) {
				String[] string = line2.split(" ");
				gyouA[i][j] = string[j];
				A[i][j] = Integer.parseInt(gyouA[i][j]);
			}

		}

		String[][] gyouB = new String[m][l];
		int[][] B = new int[m][l];
		for (int i = 0; i < m; i++) {
			String line3 = sc.nextLine();
			for (int j = 0; j < l; j++) {
				String[] string = line3.split(" ");
				gyouB[i][j] = string[j];
				B[i][j] = Integer.parseInt(gyouB[i][j]);
			}

		}

		long AB = 0;
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				long C = 0;
				for (int k = 0; k < m; k++) {
					AB = A[i][k] * B[k][j];
					C += AB;
				}
				if (j == l - 1) {
					System.out.print(C);

				} else {
					System.out.print(C + " ");

				}
			}
			System.out.println();
		}
	}
}