import java.util.Scanner;

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

		Scanner sc = new Scanner(System.in);
		int num1 = sc.nextInt();
		int num2 = sc.nextInt();
		int num3 = sc.nextInt();
		int[][] table = new int[num1][num2];
		int[][] grid = new int[num2][num3];

		for (int i1 = 0; i1 < num1; i1++) {
			for (int i2 = 0; i2 < num2; i2++) {
				table[i1][i2] = sc.nextInt();
			}
		}

		for (int i1 = 0; i1 < num2; i1++) {
			for (int i2 = 0; i2 < num3; i2++) {
				grid[i1][i2] = sc.nextInt();
			}
		}

		long [][] sum = new long[num1][num3];
		for (int i3 = 0; i3 < num1; i3++) {
			for (int i1 = 0; i1 < num3; i1++) {
				for (int i2 = 0; i2 < num2; i2++) {
					sum[i3][i1] += table[i3][i2] * grid[i2][i1];
				}

				if (i1 >= num3-1) {
					System.out.println(sum[i3][i1]);
				} else {
					System.out.print(sum[i3][i1] + " ");
				}
			}
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int num1 = sc.nextInt();
		int num2 = sc.nextInt();
		int num3 = sc.nextInt();
		int[][] table = new int[num1][num2];
		int[][] grid = new int[num2][num3];

		for (int i1 = 0; i1 < num1; i1++) {
			for (int i2 = 0; i2 < num2; i2++) {
				table[i1][i2] = sc.nextInt();
			}
		}

		for (int i1 = 0; i1 < num2; i1++) {
			for (int i2 = 0; i2 < num3; i2++) {
				grid[i1][i2] = sc.nextInt();
			}
		}

		long [][] sum = new long[num1][num3];
		for (int i3 = 0; i3 < num1; i3++) {
			for (int i1 = 0; i1 < num3; i1++) {
				for (int i2 = 0; i2 < num2; i2++) {
					sum[i3][i1] += table[i3][i2] * grid[i2][i1];
				}

				if (i1 >= num3-1) {
					System.out.println(sum[i3][i1]);
				} else {
					System.out.print(sum[i3][i1] + " ");
				}
			}
		}
	}
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int num1 = sc.nextInt();
		int num2 = sc.nextInt();
		int num3 = sc.nextInt();
		int[][] table = new int[num1][num2];
		int[][] grid = new int[num2][num3];

		for (int i1 = 0; i1 < num1; i1++) {
			for (int i2 = 0; i2 < num2; i2++) {
				table[i1][i2] = sc.nextInt();
			}
		}

		for (int i1 = 0; i1 < num2; i1++) {
			for (int i2 = 0; i2 < num3; i2++) {
				grid[i1][i2] = sc.nextInt();
			}
		}

		long [][] sum = new long[num1][num3];
		for (int i3 = 0; i3 < num1; i3++) {
			for (int i1 = 0; i1 < num3; i1++) {
				for (int i2 = 0; i2 < num2; i2++) {
					sum[i3][i1] += table[i3][i2] * grid[i2][i1];
				}

				if (i1 >= num3-1) {
					System.out.println(sum[i3][i1]);
				} else {
					System.out.print(sum[i3][i1] + " ");
				}
			}
		}
	} main {

		Scanner sc = new Scanner(System.in);
		int num1 = sc.nextInt();
		int num2 = sc.nextInt();
		int num3 = sc.nextInt();
		int[][] table = new int[num1][num2];
		int[][] grid = new int[num2][num3];

		for (int i1 = 0; i1 < num1; i1++) {
			for (int i2 = 0; i2 < num2; i2++) {
				table[i1][i2] = sc.nextInt();
			}
		}

		for (int i1 = 0; i1 < num2; i1++) {
			for (int i2 = 0; i2 < num3; i2++) {
				grid[i1][i2] = sc.nextInt();
			}
		}

		long [][] sum = new long[num1][num3];
		for (int i3 = 0; i3 < num1; i3++) {
			for (int i1 = 0; i1 < num3; i1++) {
				for (int i2 = 0; i2 < num2; i2++) {
					sum[i3][i1] += table[i3][i2] * grid[i2][i1];
				}

				if (i1 >= num3-1) {
					System.out.println(sum[i3][i1]);
				} else {
					System.out.print(sum[i3][i1] + " ");
				}
			}
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num1 = sc.nextInt(); num1 sc.nextInt() sc.nextInt sc int num2 = sc.nextInt(); num2 sc.nextInt() sc.nextInt sc int num3 = sc.nextInt(); num3 sc.nextInt() sc.nextInt sc int[][] table = new int[num1][num2]; table new int[num1][num2] num1 num2 int[][] grid = new int[num2][num3]; grid new int[num2][num3] num2 num3 for (int i1 = 0; i1 < num1; i1++) {
			for (int i2 = 0; i2 < num2; i2++) {
				table[i1][i2] = sc.nextInt();
			}
		} int i1 = 0; int i1 = 0; i1 0 i1 < num1 i1 num1 i1++ i1++ i1 {
			for (int i2 = 0; i2 < num2; i2++) {
				table[i1][i2] = sc.nextInt();
			}
		} {
			for (int i2 = 0; i2 < num2; i2++) {
				table[i1][i2] = sc.nextInt();
			}
		} for (int i2 = 0; i2 < num2; i2++) {
				table[i1][i2] = sc.nextInt();
			} int i2 = 0; int i2 = 0; i2 0 i2 < num2 i2 num2 i2++ i2++ i2 {
				table[i1][i2] = sc.nextInt();
			} {
				table[i1][i2] = sc.nextInt();
			} table[i1][i2] = sc.nextInt() table[i1][i2] table[i1] table i1 i2 sc.nextInt() sc.nextInt sc for (int i1 = 0; i1 < num2; i1++) {
			for (int i2 = 0; i2 < num3; i2++) {
				grid[i1][i2] = sc.nextInt();
			}
		} int i1 = 0; int i1 = 0; i1 0 i1 < num2 i1 num2 i1++ i1++ i1 {
			for (int i2 = 0; i2 < num3; i2++) {
				grid[i1][i2] = sc.nextInt();
			}
		} {
			for (int i2 = 0; i2 < num3; i2++) {
				grid[i1][i2] = sc.nextInt();
			}
		} for (int i2 = 0; i2 < num3; i2++) {
				grid[i1][i2] = sc.nextInt();
			} int i2 = 0; int i2 = 0; i2 0 i2 < num3 i2 num3 i2++ i2++ i2 {
				grid[i1][i2] = sc.nextInt();
			} {
				grid[i1][i2] = sc.nextInt();
			} grid[i1][i2] = sc.nextInt() grid[i1][i2] grid[i1] grid i1 i2 sc.nextInt() sc.nextInt sc long [][] sum = new long[num1][num3]; sum new long[num1][num3] num1 num3 for (int i3 = 0; i3 < num1; i3++) {
			for (int i1 = 0; i1 < num3; i1++) {
				for (int i2 = 0; i2 < num2; i2++) {
					sum[i3][i1] += table[i3][i2] * grid[i2][i1];
				}

				if (i1 >= num3-1) {
					System.out.println(sum[i3][i1]);
				} else {
					System.out.print(sum[i3][i1] + " ");
				}
			}
		} int i3 = 0; int i3 = 0; i3 0 i3 < num1 i3 num1 i3++ i3++ i3 {
			for (int i1 = 0; i1 < num3; i1++) {
				for (int i2 = 0; i2 < num2; i2++) {
					sum[i3][i1] += table[i3][i2] * grid[i2][i1];
				}

				if (i1 >= num3-1) {
					System.out.println(sum[i3][i1]);
				} else {
					System.out.print(sum[i3][i1] + " ");
				}
			}
		} {
			for (int i1 = 0; i1 < num3; i1++) {
				for (int i2 = 0; i2 < num2; i2++) {
					sum[i3][i1] += table[i3][i2] * grid[i2][i1];
				}

				if (i1 >= num3-1) {
					System.out.println(sum[i3][i1]);
				} else {
					System.out.print(sum[i3][i1] + " ");
				}
			}
		} for (int i1 = 0; i1 < num3; i1++) {
				for (int i2 = 0; i2 < num2; i2++) {
					sum[i3][i1] += table[i3][i2] * grid[i2][i1];
				}

				if (i1 >= num3-1) {
					System.out.println(sum[i3][i1]);
				} else {
					System.out.print(sum[i3][i1] + " ");
				}
			} int i1 = 0; int i1 = 0; i1 0 i1 < num3 i1 num3 i1++ i1++ i1 {
				for (int i2 = 0; i2 < num2; i2++) {
					sum[i3][i1] += table[i3][i2] * grid[i2][i1];
				}

				if (i1 >= num3-1) {
					System.out.println(sum[i3][i1]);
				} else {
					System.out.print(sum[i3][i1] + " ");
				}
			} {
				for (int i2 = 0; i2 < num2; i2++) {
					sum[i3][i1] += table[i3][i2] * grid[i2][i1];
				}

				if (i1 >= num3-1) {
					System.out.println(sum[i3][i1]);
				} else {
					System.out.print(sum[i3][i1] + " ");
				}
			} for (int i2 = 0; i2 < num2; i2++) {
					sum[i3][i1] += table[i3][i2] * grid[i2][i1];
				} int i2 = 0; int i2 = 0; i2 0 i2 < num2 i2 num2 i2++ i2++ i2 {
					sum[i3][i1] += table[i3][i2] * grid[i2][i1];
				} {
					sum[i3][i1] += table[i3][i2] * grid[i2][i1];
				} sum[i3][i1] += table[i3][i2] * grid[i2][i1] sum[i3][i1] sum[i3] sum i3 i1 table[i3][i2] * grid[i2][i1] table[i3][i2] table[i3] table i3 i2 grid[i2][i1] grid[i2] grid i2 i1 if (i1 >= num3-1) {
					System.out.println(sum[i3][i1]);
				} else {
					System.out.print(sum[i3][i1] + " ");
				} i1 >= num3-1 i1 num3-1 num3 1 {
					System.out.println(sum[i3][i1]);
				} System.out.println(sum[i3][i1]) System.out.println System.out System System.out sum[i3][i1] sum[i3] sum i3 i1 {
					System.out.print(sum[i3][i1] + " ");
				} System.out.print(sum[i3][i1] + " ") System.out.print System.out System System.out sum[i3][i1] + " " sum[i3][i1] sum[i3] sum i3 i1 " " String[] args args public class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int num1 = sc.nextInt();
		int num2 = sc.nextInt();
		int num3 = sc.nextInt();
		int[][] table = new int[num1][num2];
		int[][] grid = new int[num2][num3];

		for (int i1 = 0; i1 < num1; i1++) {
			for (int i2 = 0; i2 < num2; i2++) {
				table[i1][i2] = sc.nextInt();
			}
		}

		for (int i1 = 0; i1 < num2; i1++) {
			for (int i2 = 0; i2 < num3; i2++) {
				grid[i1][i2] = sc.nextInt();
			}
		}

		long [][] sum = new long[num1][num3];
		for (int i3 = 0; i3 < num1; i3++) {
			for (int i1 = 0; i1 < num3; i1++) {
				for (int i2 = 0; i2 < num2; i2++) {
					sum[i3][i1] += table[i3][i2] * grid[i2][i1];
				}

				if (i1 >= num3-1) {
					System.out.println(sum[i3][i1]);
				} else {
					System.out.print(sum[i3][i1] + " ");
				}
			}
		}
	}
} public class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int num1 = sc.nextInt();
		int num2 = sc.nextInt();
		int num3 = sc.nextInt();
		int[][] table = new int[num1][num2];
		int[][] grid = new int[num2][num3];

		for (int i1 = 0; i1 < num1; i1++) {
			for (int i2 = 0; i2 < num2; i2++) {
				table[i1][i2] = sc.nextInt();
			}
		}

		for (int i1 = 0; i1 < num2; i1++) {
			for (int i2 = 0; i2 < num3; i2++) {
				grid[i1][i2] = sc.nextInt();
			}
		}

		long [][] sum = new long[num1][num3];
		for (int i3 = 0; i3 < num1; i3++) {
			for (int i1 = 0; i1 < num3; i1++) {
				for (int i2 = 0; i2 < num2; i2++) {
					sum[i3][i1] += table[i3][i2] * grid[i2][i1];
				}

				if (i1 >= num3-1) {
					System.out.println(sum[i3][i1]);
				} else {
					System.out.print(sum[i3][i1] + " ");
				}
			}
		}
	}
} Main
import java.util.Scanner;

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

		Scanner sc = new Scanner(System.in);
		int num1 = sc.nextInt();
		int num2 = sc.nextInt();
		int num3 = sc.nextInt();
		int[][] table = new int[num1][num2];
		int[][] grid = new int[num2][num3];

		for (int i1 = 0; i1 < num1; i1++) {
			for (int i2 = 0; i2 < num2; i2++) {
				table[i1][i2] = sc.nextInt();
			}
		}

		for (int i1 = 0; i1 < num2; i1++) {
			for (int i2 = 0; i2 < num3; i2++) {
				grid[i1][i2] = sc.nextInt();
			}
		}

		long [][] sum = new long[num1][num3];
		for (int i3 = 0; i3 < num1; i3++) {
			for (int i1 = 0; i1 < num3; i1++) {
				for (int i2 = 0; i2 < num2; i2++) {
					sum[i3][i1] += table[i3][i2] * grid[i2][i1];
				}

				if (i1 >= num3-1) {
					System.out.println(sum[i3][i1]);
				} else {
					System.out.print(sum[i3][i1] + " ");
				}
			}
		}
	}
}
