import java.util.Scanner;

public class Main {
	public static void main(String[] arges) {

		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] k = line.split(" ");
		int[] v = new int[3];
		for (int i = 0; i < v.length; i++) {
			v[i] = Integer.parseInt(k[i]);
		}
		long[][] suuretu = new long[v[0]][v[2]];

		int[][] suuretua = new int[v[0]][v[1]];
		int[][] suuretub = new int[v[1]][v[2]];

		for (int i = 0; i < v[0]; i++) {
			String line2 = sc.nextLine();
			String[] k2 = line2.split(" ");

			for (int j2 = 0; j2 < v[1]; j2++) {
				suuretua[i][j2] = Integer.parseInt(k2[j2]);
			}
		}
		for (int i = 0; i < v[1]; i++) {
			String line2 = sc.nextLine();
			String[] k2 = line2.split(" ");

			for (int j2 = 0; j2 < v[2]; j2++) {
				suuretub[i][j2] = Integer.parseInt(k2[j2]);
			}
		}

		for (int i = 0; i < v[0]; i++) {
			for (int j = 0; j < v[2]; j++) {

				long sum = 0;
				for (int j2 = 0; j2 < v[1]; j2++) {
					sum += suuretua[i][j2]*suuretub[j2][j];
				}suuretu[i][j] = sum;
			}
		}
		for (int i = 0; i < v[0]; i++) {
			for (int j = 0; j < v[2]; j++) {
				System.out.print(suuretu[i][j]);
				if (j!=v[2]-1) {
					System.out.print(" ");
				}
			}
			System.out.println("");
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] arges) {

		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] k = line.split(" ");
		int[] v = new int[3];
		for (int i = 0; i < v.length; i++) {
			v[i] = Integer.parseInt(k[i]);
		}
		long[][] suuretu = new long[v[0]][v[2]];

		int[][] suuretua = new int[v[0]][v[1]];
		int[][] suuretub = new int[v[1]][v[2]];

		for (int i = 0; i < v[0]; i++) {
			String line2 = sc.nextLine();
			String[] k2 = line2.split(" ");

			for (int j2 = 0; j2 < v[1]; j2++) {
				suuretua[i][j2] = Integer.parseInt(k2[j2]);
			}
		}
		for (int i = 0; i < v[1]; i++) {
			String line2 = sc.nextLine();
			String[] k2 = line2.split(" ");

			for (int j2 = 0; j2 < v[2]; j2++) {
				suuretub[i][j2] = Integer.parseInt(k2[j2]);
			}
		}

		for (int i = 0; i < v[0]; i++) {
			for (int j = 0; j < v[2]; j++) {

				long sum = 0;
				for (int j2 = 0; j2 < v[1]; j2++) {
					sum += suuretua[i][j2]*suuretub[j2][j];
				}suuretu[i][j] = sum;
			}
		}
		for (int i = 0; i < v[0]; i++) {
			for (int j = 0; j < v[2]; j++) {
				System.out.print(suuretu[i][j]);
				if (j!=v[2]-1) {
					System.out.print(" ");
				}
			}
			System.out.println("");
		}
	}
} Main public static void main(String[] arges) {

		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] k = line.split(" ");
		int[] v = new int[3];
		for (int i = 0; i < v.length; i++) {
			v[i] = Integer.parseInt(k[i]);
		}
		long[][] suuretu = new long[v[0]][v[2]];

		int[][] suuretua = new int[v[0]][v[1]];
		int[][] suuretub = new int[v[1]][v[2]];

		for (int i = 0; i < v[0]; i++) {
			String line2 = sc.nextLine();
			String[] k2 = line2.split(" ");

			for (int j2 = 0; j2 < v[1]; j2++) {
				suuretua[i][j2] = Integer.parseInt(k2[j2]);
			}
		}
		for (int i = 0; i < v[1]; i++) {
			String line2 = sc.nextLine();
			String[] k2 = line2.split(" ");

			for (int j2 = 0; j2 < v[2]; j2++) {
				suuretub[i][j2] = Integer.parseInt(k2[j2]);
			}
		}

		for (int i = 0; i < v[0]; i++) {
			for (int j = 0; j < v[2]; j++) {

				long sum = 0;
				for (int j2 = 0; j2 < v[1]; j2++) {
					sum += suuretua[i][j2]*suuretub[j2][j];
				}suuretu[i][j] = sum;
			}
		}
		for (int i = 0; i < v[0]; i++) {
			for (int j = 0; j < v[2]; j++) {
				System.out.print(suuretu[i][j]);
				if (j!=v[2]-1) {
					System.out.print(" ");
				}
			}
			System.out.println("");
		}
	} main {

		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] k = line.split(" ");
		int[] v = new int[3];
		for (int i = 0; i < v.length; i++) {
			v[i] = Integer.parseInt(k[i]);
		}
		long[][] suuretu = new long[v[0]][v[2]];

		int[][] suuretua = new int[v[0]][v[1]];
		int[][] suuretub = new int[v[1]][v[2]];

		for (int i = 0; i < v[0]; i++) {
			String line2 = sc.nextLine();
			String[] k2 = line2.split(" ");

			for (int j2 = 0; j2 < v[1]; j2++) {
				suuretua[i][j2] = Integer.parseInt(k2[j2]);
			}
		}
		for (int i = 0; i < v[1]; i++) {
			String line2 = sc.nextLine();
			String[] k2 = line2.split(" ");

			for (int j2 = 0; j2 < v[2]; j2++) {
				suuretub[i][j2] = Integer.parseInt(k2[j2]);
			}
		}

		for (int i = 0; i < v[0]; i++) {
			for (int j = 0; j < v[2]; j++) {

				long sum = 0;
				for (int j2 = 0; j2 < v[1]; j2++) {
					sum += suuretua[i][j2]*suuretub[j2][j];
				}suuretu[i][j] = sum;
			}
		}
		for (int i = 0; i < v[0]; i++) {
			for (int j = 0; j < v[2]; j++) {
				System.out.print(suuretu[i][j]);
				if (j!=v[2]-1) {
					System.out.print(" ");
				}
			}
			System.out.println("");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String line = sc.nextLine(); line sc.nextLine() sc.nextLine sc String[] k = line.split(" "); k line.split(" ") line.split line " " int[] v = new int[3]; v new int[3] 3 for (int i = 0; i < v.length; i++) {
			v[i] = Integer.parseInt(k[i]);
		} int i = 0; int i = 0; i 0 i < v.length i v.length v v.length i++ i++ i {
			v[i] = Integer.parseInt(k[i]);
		} {
			v[i] = Integer.parseInt(k[i]);
		} v[i] = Integer.parseInt(k[i]) v[i] v i Integer.parseInt(k[i]) Integer.parseInt Integer k[i] k i long[][] suuretu = new long[v[0]][v[2]]; suuretu new long[v[0]][v[2]] v[0] v 0 v[2] v 2 int[][] suuretua = new int[v[0]][v[1]]; suuretua new int[v[0]][v[1]] v[0] v 0 v[1] v 1 int[][] suuretub = new int[v[1]][v[2]]; suuretub new int[v[1]][v[2]] v[1] v 1 v[2] v 2 for (int i = 0; i < v[0]; i++) {
			String line2 = sc.nextLine();
			String[] k2 = line2.split(" ");

			for (int j2 = 0; j2 < v[1]; j2++) {
				suuretua[i][j2] = Integer.parseInt(k2[j2]);
			}
		} int i = 0; int i = 0; i 0 i < v[0] i v[0] v 0 i++ i++ i {
			String line2 = sc.nextLine();
			String[] k2 = line2.split(" ");

			for (int j2 = 0; j2 < v[1]; j2++) {
				suuretua[i][j2] = Integer.parseInt(k2[j2]);
			}
		} {
			String line2 = sc.nextLine();
			String[] k2 = line2.split(" ");

			for (int j2 = 0; j2 < v[1]; j2++) {
				suuretua[i][j2] = Integer.parseInt(k2[j2]);
			}
		} String line2 = sc.nextLine(); line2 sc.nextLine() sc.nextLine sc String[] k2 = line2.split(" "); k2 line2.split(" ") line2.split line2 " " for (int j2 = 0; j2 < v[1]; j2++) {
				suuretua[i][j2] = Integer.parseInt(k2[j2]);
			} int j2 = 0; int j2 = 0; j2 0 j2 < v[1] j2 v[1] v 1 j2++ j2++ j2 {
				suuretua[i][j2] = Integer.parseInt(k2[j2]);
			} {
				suuretua[i][j2] = Integer.parseInt(k2[j2]);
			} suuretua[i][j2] = Integer.parseInt(k2[j2]) suuretua[i][j2] suuretua[i] suuretua i j2 Integer.parseInt(k2[j2]) Integer.parseInt Integer k2[j2] k2 j2 for (int i = 0; i < v[1]; i++) {
			String line2 = sc.nextLine();
			String[] k2 = line2.split(" ");

			for (int j2 = 0; j2 < v[2]; j2++) {
				suuretub[i][j2] = Integer.parseInt(k2[j2]);
			}
		} int i = 0; int i = 0; i 0 i < v[1] i v[1] v 1 i++ i++ i {
			String line2 = sc.nextLine();
			String[] k2 = line2.split(" ");

			for (int j2 = 0; j2 < v[2]; j2++) {
				suuretub[i][j2] = Integer.parseInt(k2[j2]);
			}
		} {
			String line2 = sc.nextLine();
			String[] k2 = line2.split(" ");

			for (int j2 = 0; j2 < v[2]; j2++) {
				suuretub[i][j2] = Integer.parseInt(k2[j2]);
			}
		} String line2 = sc.nextLine(); line2 sc.nextLine() sc.nextLine sc String[] k2 = line2.split(" "); k2 line2.split(" ") line2.split line2 " " for (int j2 = 0; j2 < v[2]; j2++) {
				suuretub[i][j2] = Integer.parseInt(k2[j2]);
			} int j2 = 0; int j2 = 0; j2 0 j2 < v[2] j2 v[2] v 2 j2++ j2++ j2 {
				suuretub[i][j2] = Integer.parseInt(k2[j2]);
			} {
				suuretub[i][j2] = Integer.parseInt(k2[j2]);
			} suuretub[i][j2] = Integer.parseInt(k2[j2]) suuretub[i][j2] suuretub[i] suuretub i j2 Integer.parseInt(k2[j2]) Integer.parseInt Integer k2[j2] k2 j2 for (int i = 0; i < v[0]; i++) {
			for (int j = 0; j < v[2]; j++) {

				long sum = 0;
				for (int j2 = 0; j2 < v[1]; j2++) {
					sum += suuretua[i][j2]*suuretub[j2][j];
				}suuretu[i][j] = sum;
			}
		} int i = 0; int i = 0; i 0 i < v[0] i v[0] v 0 i++ i++ i {
			for (int j = 0; j < v[2]; j++) {

				long sum = 0;
				for (int j2 = 0; j2 < v[1]; j2++) {
					sum += suuretua[i][j2]*suuretub[j2][j];
				}suuretu[i][j] = sum;
			}
		} {
			for (int j = 0; j < v[2]; j++) {

				long sum = 0;
				for (int j2 = 0; j2 < v[1]; j2++) {
					sum += suuretua[i][j2]*suuretub[j2][j];
				}suuretu[i][j] = sum;
			}
		} for (int j = 0; j < v[2]; j++) {

				long sum = 0;
				for (int j2 = 0; j2 < v[1]; j2++) {
					sum += suuretua[i][j2]*suuretub[j2][j];
				}suuretu[i][j] = sum;
			} int j = 0; int j = 0; j 0 j < v[2] j v[2] v 2 j++ j++ j {

				long sum = 0;
				for (int j2 = 0; j2 < v[1]; j2++) {
					sum += suuretua[i][j2]*suuretub[j2][j];
				}suuretu[i][j] = sum;
			} {

				long sum = 0;
				for (int j2 = 0; j2 < v[1]; j2++) {
					sum += suuretua[i][j2]*suuretub[j2][j];
				}suuretu[i][j] = sum;
			} long sum = 0; sum 0 for (int j2 = 0; j2 < v[1]; j2++) {
					sum += suuretua[i][j2]*suuretub[j2][j];
				} int j2 = 0; int j2 = 0; j2 0 j2 < v[1] j2 v[1] v 1 j2++ j2++ j2 {
					sum += suuretua[i][j2]*suuretub[j2][j];
				} {
					sum += suuretua[i][j2]*suuretub[j2][j];
				} sum += suuretua[i][j2]*suuretub[j2][j] sum suuretua[i][j2]*suuretub[j2][j] suuretua[i][j2] suuretua[i] suuretua i j2 suuretub[j2][j] suuretub[j2] suuretub j2 j suuretu[i][j] = sum suuretu[i][j] suuretu[i] suuretu i j sum for (int i = 0; i < v[0]; i++) {
			for (int j = 0; j < v[2]; j++) {
				System.out.print(suuretu[i][j]);
				if (j!=v[2]-1) {
					System.out.print(" ");
				}
			}
			System.out.println("");
		} int i = 0; int i = 0; i 0 i < v[0] i v[0] v 0 i++ i++ i {
			for (int j = 0; j < v[2]; j++) {
				System.out.print(suuretu[i][j]);
				if (j!=v[2]-1) {
					System.out.print(" ");
				}
			}
			System.out.println("");
		} {
			for (int j = 0; j < v[2]; j++) {
				System.out.print(suuretu[i][j]);
				if (j!=v[2]-1) {
					System.out.print(" ");
				}
			}
			System.out.println("");
		} for (int j = 0; j < v[2]; j++) {
				System.out.print(suuretu[i][j]);
				if (j!=v[2]-1) {
					System.out.print(" ");
				}
			} int j = 0; int j = 0; j 0 j < v[2] j v[2] v 2 j++ j++ j {
				System.out.print(suuretu[i][j]);
				if (j!=v[2]-1) {
					System.out.print(" ");
				}
			} {
				System.out.print(suuretu[i][j]);
				if (j!=v[2]-1) {
					System.out.print(" ");
				}
			} System.out.print(suuretu[i][j]) System.out.print System.out System System.out suuretu[i][j] suuretu[i] suuretu i j if (j!=v[2]-1) {
					System.out.print(" ");
				} j!=v[2]-1 j v[2]-1 v[2] v 2 1 {
					System.out.print(" ");
				} System.out.print(" ") System.out.print System.out System System.out " " System.out.println("") System.out.println System.out System System.out "" String[] arges arges public class Main {
	public static void main(String[] arges) {

		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] k = line.split(" ");
		int[] v = new int[3];
		for (int i = 0; i < v.length; i++) {
			v[i] = Integer.parseInt(k[i]);
		}
		long[][] suuretu = new long[v[0]][v[2]];

		int[][] suuretua = new int[v[0]][v[1]];
		int[][] suuretub = new int[v[1]][v[2]];

		for (int i = 0; i < v[0]; i++) {
			String line2 = sc.nextLine();
			String[] k2 = line2.split(" ");

			for (int j2 = 0; j2 < v[1]; j2++) {
				suuretua[i][j2] = Integer.parseInt(k2[j2]);
			}
		}
		for (int i = 0; i < v[1]; i++) {
			String line2 = sc.nextLine();
			String[] k2 = line2.split(" ");

			for (int j2 = 0; j2 < v[2]; j2++) {
				suuretub[i][j2] = Integer.parseInt(k2[j2]);
			}
		}

		for (int i = 0; i < v[0]; i++) {
			for (int j = 0; j < v[2]; j++) {

				long sum = 0;
				for (int j2 = 0; j2 < v[1]; j2++) {
					sum += suuretua[i][j2]*suuretub[j2][j];
				}suuretu[i][j] = sum;
			}
		}
		for (int i = 0; i < v[0]; i++) {
			for (int j = 0; j < v[2]; j++) {
				System.out.print(suuretu[i][j]);
				if (j!=v[2]-1) {
					System.out.print(" ");
				}
			}
			System.out.println("");
		}
	}
} public class Main {
	public static void main(String[] arges) {

		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] k = line.split(" ");
		int[] v = new int[3];
		for (int i = 0; i < v.length; i++) {
			v[i] = Integer.parseInt(k[i]);
		}
		long[][] suuretu = new long[v[0]][v[2]];

		int[][] suuretua = new int[v[0]][v[1]];
		int[][] suuretub = new int[v[1]][v[2]];

		for (int i = 0; i < v[0]; i++) {
			String line2 = sc.nextLine();
			String[] k2 = line2.split(" ");

			for (int j2 = 0; j2 < v[1]; j2++) {
				suuretua[i][j2] = Integer.parseInt(k2[j2]);
			}
		}
		for (int i = 0; i < v[1]; i++) {
			String line2 = sc.nextLine();
			String[] k2 = line2.split(" ");

			for (int j2 = 0; j2 < v[2]; j2++) {
				suuretub[i][j2] = Integer.parseInt(k2[j2]);
			}
		}

		for (int i = 0; i < v[0]; i++) {
			for (int j = 0; j < v[2]; j++) {

				long sum = 0;
				for (int j2 = 0; j2 < v[1]; j2++) {
					sum += suuretua[i][j2]*suuretub[j2][j];
				}suuretu[i][j] = sum;
			}
		}
		for (int i = 0; i < v[0]; i++) {
			for (int j = 0; j < v[2]; j++) {
				System.out.print(suuretu[i][j]);
				if (j!=v[2]-1) {
					System.out.print(" ");
				}
			}
			System.out.println("");
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] arges) {

		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] k = line.split(" ");
		int[] v = new int[3];
		for (int i = 0; i < v.length; i++) {
			v[i] = Integer.parseInt(k[i]);
		}
		long[][] suuretu = new long[v[0]][v[2]];

		int[][] suuretua = new int[v[0]][v[1]];
		int[][] suuretub = new int[v[1]][v[2]];

		for (int i = 0; i < v[0]; i++) {
			String line2 = sc.nextLine();
			String[] k2 = line2.split(" ");

			for (int j2 = 0; j2 < v[1]; j2++) {
				suuretua[i][j2] = Integer.parseInt(k2[j2]);
			}
		}
		for (int i = 0; i < v[1]; i++) {
			String line2 = sc.nextLine();
			String[] k2 = line2.split(" ");

			for (int j2 = 0; j2 < v[2]; j2++) {
				suuretub[i][j2] = Integer.parseInt(k2[j2]);
			}
		}

		for (int i = 0; i < v[0]; i++) {
			for (int j = 0; j < v[2]; j++) {

				long sum = 0;
				for (int j2 = 0; j2 < v[1]; j2++) {
					sum += suuretua[i][j2]*suuretub[j2][j];
				}suuretu[i][j] = sum;
			}
		}
		for (int i = 0; i < v[0]; i++) {
			for (int j = 0; j < v[2]; j++) {
				System.out.print(suuretu[i][j]);
				if (j!=v[2]-1) {
					System.out.print(" ");
				}
			}
			System.out.println("");
		}
	}
}