import java.util.Scanner;

// (1) ??????A????????°???????????????C????????°??§????????°???n???????????????(Scanner)
// (2) ??????A????????°???????????????B????????°??§????????°???m???????????????
// (3) ??????B????????°???????????????C????????°??§????????°???l???????????????
// (4) ??????A???????¬??????????([n] [m])?????¨?????????
// (5) ??????B???????¬??????????([m] [l])?????¨?????????
// (6) ??????C???????¬??????????([n] [l])?????¨?????????
// (7) n?????°???????????\?????????????????????
	// (7.1) m?????°???????????\?????????????????????
		// (7.1.1) ??°??????????????????
		// (7.1.2) ?????????????????°????????????A???????¬?????????????????´???????
// (8) m?????°???????????\?????????????????????
	//(8.1) l?????°???????????\?????????????????????
		// (8.1.1) ??°??????????????????
		// (8.1.2) ?????????????????°????????????B???????¬?????????????????´???????
// (9) ??????C????????°n?????°(i)???????????\?????????????????????
	// (9.1) ??????C????????°l?????°(j)???????????\?????????????????????
		// (9.1.1) ??????A??¨??????B??????????????????????????°m(k)???????????\?????????????????????
			// (9.1.1.1) ?????°productResult????????????A??¨??????B???????¬?????????????????´?????????°???????????????????????????????????£??\??????
			// (9.1.1.2) ??????C???productResult???????????????(+=)
		// (9.1.2) ?£???????¨???????????????¨?????????
		// (9.1.3) j == l??????????????????????????????
		// (9.1.4) ???????????\??????
	// (9.2) ???????????????
// (10) ???????????????
// (11) Scanner?????????????????????

public class Main {

	public static void main(String[] args) {
		int n = 0;
		int m = 0;
		int l = 0;

		Scanner scan = new Scanner(System.in);

		n = scan.nextInt();
		m = scan.nextInt();
		l = scan.nextInt();

		int[] [] matrixA = new int[n] [m];
		int[] [] matrixB = new int[m] [l];
		long[] [] matrixC = new long[n] [l];

		for (int i = 0; i < n; i++){
			for (int j = 0; j < m; j++){
				int numA = scan.nextInt();
				matrixA[i] [j] = numA;
			}
		}
		for (int i = 0; i < m; i++){
			for (int j = 0; j < l; j++){
				int numB = scan.nextInt();
				matrixB[i] [j] = numB;
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				for (int k = 0; k < m; k++) {
					int productResult = (matrixA[i] [k]) * (matrixB[k] [j]);
					matrixC [i] [j] += productResult;
				}
				System.out.print(matrixC[i] [j]);
				if (j == l - 1) {
					break;
				}
				System.out.print(" ");
			}
			System.out.println();
		}
		scan.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		int n = 0;
		int m = 0;
		int l = 0;

		Scanner scan = new Scanner(System.in);

		n = scan.nextInt();
		m = scan.nextInt();
		l = scan.nextInt();

		int[] [] matrixA = new int[n] [m];
		int[] [] matrixB = new int[m] [l];
		long[] [] matrixC = new long[n] [l];

		for (int i = 0; i < n; i++){
			for (int j = 0; j < m; j++){
				int numA = scan.nextInt();
				matrixA[i] [j] = numA;
			}
		}
		for (int i = 0; i < m; i++){
			for (int j = 0; j < l; j++){
				int numB = scan.nextInt();
				matrixB[i] [j] = numB;
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				for (int k = 0; k < m; k++) {
					int productResult = (matrixA[i] [k]) * (matrixB[k] [j]);
					matrixC [i] [j] += productResult;
				}
				System.out.print(matrixC[i] [j]);
				if (j == l - 1) {
					break;
				}
				System.out.print(" ");
			}
			System.out.println();
		}
		scan.close();
	}
} Main public static void main(String[] args) {
		int n = 0;
		int m = 0;
		int l = 0;

		Scanner scan = new Scanner(System.in);

		n = scan.nextInt();
		m = scan.nextInt();
		l = scan.nextInt();

		int[] [] matrixA = new int[n] [m];
		int[] [] matrixB = new int[m] [l];
		long[] [] matrixC = new long[n] [l];

		for (int i = 0; i < n; i++){
			for (int j = 0; j < m; j++){
				int numA = scan.nextInt();
				matrixA[i] [j] = numA;
			}
		}
		for (int i = 0; i < m; i++){
			for (int j = 0; j < l; j++){
				int numB = scan.nextInt();
				matrixB[i] [j] = numB;
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				for (int k = 0; k < m; k++) {
					int productResult = (matrixA[i] [k]) * (matrixB[k] [j]);
					matrixC [i] [j] += productResult;
				}
				System.out.print(matrixC[i] [j]);
				if (j == l - 1) {
					break;
				}
				System.out.print(" ");
			}
			System.out.println();
		}
		scan.close();
	} main {
		int n = 0;
		int m = 0;
		int l = 0;

		Scanner scan = new Scanner(System.in);

		n = scan.nextInt();
		m = scan.nextInt();
		l = scan.nextInt();

		int[] [] matrixA = new int[n] [m];
		int[] [] matrixB = new int[m] [l];
		long[] [] matrixC = new long[n] [l];

		for (int i = 0; i < n; i++){
			for (int j = 0; j < m; j++){
				int numA = scan.nextInt();
				matrixA[i] [j] = numA;
			}
		}
		for (int i = 0; i < m; i++){
			for (int j = 0; j < l; j++){
				int numB = scan.nextInt();
				matrixB[i] [j] = numB;
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				for (int k = 0; k < m; k++) {
					int productResult = (matrixA[i] [k]) * (matrixB[k] [j]);
					matrixC [i] [j] += productResult;
				}
				System.out.print(matrixC[i] [j]);
				if (j == l - 1) {
					break;
				}
				System.out.print(" ");
			}
			System.out.println();
		}
		scan.close();
	} int n = 0; n 0 int m = 0; m 0 int l = 0; l 0 Scanner scan = new Scanner(System.in); scan new Scanner(System.in) n = scan.nextInt() n scan.nextInt() scan.nextInt scan m = scan.nextInt() m scan.nextInt() scan.nextInt scan l = scan.nextInt() l scan.nextInt() scan.nextInt scan int[] [] matrixA = new int[n] [m]; matrixA new int[n] [m] n m int[] [] matrixB = new int[m] [l]; matrixB new int[m] [l] m l long[] [] matrixC = new long[n] [l]; matrixC new long[n] [l] n l for (int i = 0; i < n; i++){
			for (int j = 0; j < m; j++){
				int numA = scan.nextInt();
				matrixA[i] [j] = numA;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			for (int j = 0; j < m; j++){
				int numA = scan.nextInt();
				matrixA[i] [j] = numA;
			}
		} {
			for (int j = 0; j < m; j++){
				int numA = scan.nextInt();
				matrixA[i] [j] = numA;
			}
		} for (int j = 0; j < m; j++){
				int numA = scan.nextInt();
				matrixA[i] [j] = numA;
			} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
				int numA = scan.nextInt();
				matrixA[i] [j] = numA;
			} {
				int numA = scan.nextInt();
				matrixA[i] [j] = numA;
			} int numA = scan.nextInt(); numA scan.nextInt() scan.nextInt scan matrixA[i] [j] = numA matrixA[i] [j] matrixA[i] matrixA i j numA for (int i = 0; i < m; i++){
			for (int j = 0; j < l; j++){
				int numB = scan.nextInt();
				matrixB[i] [j] = numB;
			}
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
			for (int j = 0; j < l; j++){
				int numB = scan.nextInt();
				matrixB[i] [j] = numB;
			}
		} {
			for (int j = 0; j < l; j++){
				int numB = scan.nextInt();
				matrixB[i] [j] = numB;
			}
		} for (int j = 0; j < l; j++){
				int numB = scan.nextInt();
				matrixB[i] [j] = numB;
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				int numB = scan.nextInt();
				matrixB[i] [j] = numB;
			} {
				int numB = scan.nextInt();
				matrixB[i] [j] = numB;
			} int numB = scan.nextInt(); numB scan.nextInt() scan.nextInt scan matrixB[i] [j] = numB matrixB[i] [j] matrixB[i] matrixB i j numB for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				for (int k = 0; k < m; k++) {
					int productResult = (matrixA[i] [k]) * (matrixB[k] [j]);
					matrixC [i] [j] += productResult;
				}
				System.out.print(matrixC[i] [j]);
				if (j == l - 1) {
					break;
				}
				System.out.print(" ");
			}
			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++) {
				for (int k = 0; k < m; k++) {
					int productResult = (matrixA[i] [k]) * (matrixB[k] [j]);
					matrixC [i] [j] += productResult;
				}
				System.out.print(matrixC[i] [j]);
				if (j == l - 1) {
					break;
				}
				System.out.print(" ");
			}
			System.out.println();
		} {
			for (int j = 0; j < l; j++) {
				for (int k = 0; k < m; k++) {
					int productResult = (matrixA[i] [k]) * (matrixB[k] [j]);
					matrixC [i] [j] += productResult;
				}
				System.out.print(matrixC[i] [j]);
				if (j == l - 1) {
					break;
				}
				System.out.print(" ");
			}
			System.out.println();
		} for (int j = 0; j < l; j++) {
				for (int k = 0; k < m; k++) {
					int productResult = (matrixA[i] [k]) * (matrixB[k] [j]);
					matrixC [i] [j] += productResult;
				}
				System.out.print(matrixC[i] [j]);
				if (j == l - 1) {
					break;
				}
				System.out.print(" ");
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				for (int k = 0; k < m; k++) {
					int productResult = (matrixA[i] [k]) * (matrixB[k] [j]);
					matrixC [i] [j] += productResult;
				}
				System.out.print(matrixC[i] [j]);
				if (j == l - 1) {
					break;
				}
				System.out.print(" ");
			} {
				for (int k = 0; k < m; k++) {
					int productResult = (matrixA[i] [k]) * (matrixB[k] [j]);
					matrixC [i] [j] += productResult;
				}
				System.out.print(matrixC[i] [j]);
				if (j == l - 1) {
					break;
				}
				System.out.print(" ");
			} for (int k = 0; k < m; k++) {
					int productResult = (matrixA[i] [k]) * (matrixB[k] [j]);
					matrixC [i] [j] += productResult;
				} int k = 0; int k = 0; k 0 k < m k m k++ k++ k {
					int productResult = (matrixA[i] [k]) * (matrixB[k] [j]);
					matrixC [i] [j] += productResult;
				} {
					int productResult = (matrixA[i] [k]) * (matrixB[k] [j]);
					matrixC [i] [j] += productResult;
				} int productResult = (matrixA[i] [k]) * (matrixB[k] [j]); productResult (matrixA[i] [k]) * (matrixB[k] [j]) (matrixA[i] [k]) matrixA[i] matrixA i k (matrixB[k] [j]) matrixB[k] matrixB k j matrixC [i] [j] += productResult matrixC [i] [j] matrixC [i] matrixC i j productResult System.out.print(matrixC[i] [j]) System.out.print System.out System System.out matrixC[i] [j] matrixC[i] matrixC i j if (j == l - 1) {
					break;
				} j == l - 1 j l - 1 l 1 {
					break;
				} break; System.out.print(" ") System.out.print System.out System System.out " " System.out.println() System.out.println System.out System System.out scan.close() scan.close scan String[] args args public class Main {

	public static void main(String[] args) {
		int n = 0;
		int m = 0;
		int l = 0;

		Scanner scan = new Scanner(System.in);

		n = scan.nextInt();
		m = scan.nextInt();
		l = scan.nextInt();

		int[] [] matrixA = new int[n] [m];
		int[] [] matrixB = new int[m] [l];
		long[] [] matrixC = new long[n] [l];

		for (int i = 0; i < n; i++){
			for (int j = 0; j < m; j++){
				int numA = scan.nextInt();
				matrixA[i] [j] = numA;
			}
		}
		for (int i = 0; i < m; i++){
			for (int j = 0; j < l; j++){
				int numB = scan.nextInt();
				matrixB[i] [j] = numB;
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				for (int k = 0; k < m; k++) {
					int productResult = (matrixA[i] [k]) * (matrixB[k] [j]);
					matrixC [i] [j] += productResult;
				}
				System.out.print(matrixC[i] [j]);
				if (j == l - 1) {
					break;
				}
				System.out.print(" ");
			}
			System.out.println();
		}
		scan.close();
	}
} public class Main {

	public static void main(String[] args) {
		int n = 0;
		int m = 0;
		int l = 0;

		Scanner scan = new Scanner(System.in);

		n = scan.nextInt();
		m = scan.nextInt();
		l = scan.nextInt();

		int[] [] matrixA = new int[n] [m];
		int[] [] matrixB = new int[m] [l];
		long[] [] matrixC = new long[n] [l];

		for (int i = 0; i < n; i++){
			for (int j = 0; j < m; j++){
				int numA = scan.nextInt();
				matrixA[i] [j] = numA;
			}
		}
		for (int i = 0; i < m; i++){
			for (int j = 0; j < l; j++){
				int numB = scan.nextInt();
				matrixB[i] [j] = numB;
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				for (int k = 0; k < m; k++) {
					int productResult = (matrixA[i] [k]) * (matrixB[k] [j]);
					matrixC [i] [j] += productResult;
				}
				System.out.print(matrixC[i] [j]);
				if (j == l - 1) {
					break;
				}
				System.out.print(" ");
			}
			System.out.println();
		}
		scan.close();
	}
} Main
import java.util.Scanner;

// (1) ??????A????????°???????????????C????????°??§????????°???n???????????????(Scanner)
// (2) ??????A????????°???????????????B????????°??§????????°???m???????????????
// (3) ??????B????????°???????????????C????????°??§????????°???l???????????????
// (4) ??????A???????¬??????????([n] [m])?????¨?????????
// (5) ??????B???????¬??????????([m] [l])?????¨?????????
// (6) ??????C???????¬??????????([n] [l])?????¨?????????
// (7) n?????°???????????\?????????????????????
	// (7.1) m?????°???????????\?????????????????????
		// (7.1.1) ??°??????????????????
		// (7.1.2) ?????????????????°????????????A???????¬?????????????????´???????
// (8) m?????°???????????\?????????????????????
	//(8.1) l?????°???????????\?????????????????????
		// (8.1.1) ??°??????????????????
		// (8.1.2) ?????????????????°????????????B???????¬?????????????????´???????
// (9) ??????C????????°n?????°(i)???????????\?????????????????????
	// (9.1) ??????C????????°l?????°(j)???????????\?????????????????????
		// (9.1.1) ??????A??¨??????B??????????????????????????°m(k)???????????\?????????????????????
			// (9.1.1.1) ?????°productResult????????????A??¨??????B???????¬?????????????????´?????????°???????????????????????????????????£??\??????
			// (9.1.1.2) ??????C???productResult???????????????(+=)
		// (9.1.2) ?£???????¨???????????????¨?????????
		// (9.1.3) j == l??????????????????????????????
		// (9.1.4) ???????????\??????
	// (9.2) ???????????????
// (10) ???????????????
// (11) Scanner?????????????????????

public class Main {

	public static void main(String[] args) {
		int n = 0;
		int m = 0;
		int l = 0;

		Scanner scan = new Scanner(System.in);

		n = scan.nextInt();
		m = scan.nextInt();
		l = scan.nextInt();

		int[] [] matrixA = new int[n] [m];
		int[] [] matrixB = new int[m] [l];
		long[] [] matrixC = new long[n] [l];

		for (int i = 0; i < n; i++){
			for (int j = 0; j < m; j++){
				int numA = scan.nextInt();
				matrixA[i] [j] = numA;
			}
		}
		for (int i = 0; i < m; i++){
			for (int j = 0; j < l; j++){
				int numB = scan.nextInt();
				matrixB[i] [j] = numB;
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				for (int k = 0; k < m; k++) {
					int productResult = (matrixA[i] [k]) * (matrixB[k] [j]);
					matrixC [i] [j] += productResult;
				}
				System.out.print(matrixC[i] [j]);
				if (j == l - 1) {
					break;
				}
				System.out.print(" ");
			}
			System.out.println();
		}
		scan.close();
	}
}