

import java.util.*;

public class Main {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int n, m, l, c1, c2;
		n = scan.nextInt();
		m = scan.nextInt();
		l = scan.nextInt();
		long rs = 0;// ?¨???????????????????????????????
		c1 = 0;// ????¬???????????????????
		c2 = 0;// ????¬???????????????????

		// ????¬???????????????¨???
		long num1[][] = new long[n + 5][m + 5];
		long num2[][] = new long[m + 5][l + 5];
		long result[][] = new long[n + 5][l + 5];

		// ????¬???????????????\??? num1
		for (int count = 0; count < n; count++) {
			for (int count2 = 0; count2 < m; count2++) {
				num1[count][count2] = scan.nextInt();
			}
		}
		// ????¬???????????????\??? num2
		for (int count3 = 0; count3 < m; count3++) {
			for (int count4 = 0; count4 < l; count4++) {
				num2[count3][count4] = scan.nextInt();
			}
		}

		// ?¨???? (n*m)?????°????????????
		// l??????????????????????????????
		for (int count7 = 0; count7 < l; count7++) {
			for (int count5 = 0; count5 < n; count5++) {
				for (int count6 = 0; count6 < m; count6++) {
					rs = rs + num1[count5][count6] * num2[count6][c2];
				}
				result[c1][c2] = rs;
				c1++;
				rs = 0;
			}

			c1 = 0;
			c2++;
		}

		// output (n*m)?????????
		for (int i = 0; i < n; i++) {
			for (int i2 = 0; i2 < l; i2++) {
				sb.append(result[i][i2]);
				if (i2 != (l - 1)) {
					sb.append(" ");
				}
			}
			sb.append("\n");
		}

		System.out.print(new String(sb));

	}
}
/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz