

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner in = new Scanner(System.in);

		// ??????A????????°?????????
		int line = in.nextInt();
		// ??????A????????°????????????B????????°?????????
		int line_column = in.nextInt();
		// ??????B????????°?????????
		int column = in.nextInt();

		// ??????A,B???????´??????????????????¨???
		int[][] matrixA = new int[line][line_column];
		int[][] matrixB = new int[line_column][column];

		// ??????A?????????????´?
		for(int i = 0; i < line; i++){

			for(int j = 0; j < line_column; j++){

				matrixA[i][j] = in.nextInt();

			}
		}

		// ??????B?????????????´?
		for(int j = 0; j < line_column; j++){

			for(int k = 0; k < column; k++){

				matrixB[j][k] = in.nextInt();

			}
		}

		// ??????A,B?????????????´??????????????????¨???
		long[][] ans = new long[line][column];

		// ??????A.B?????????????´?
		for(int i = 0; i < line; i++){

			for(int j = 0; j < line_column; j++){

				for(int k = 0; k < column; k++){

					ans[i][k] += matrixA[i][j] * matrixB[j][k];

				}
			}
		}

		// ??????A,B???????????????
		for(int i = 0; i < line; i++){

			for(int k = 0; k < column - 1; k++){

				System.out.print(ans[i][k] + " ");

			}

			System.out.println(ans[i][column - 1]);

		}
	}
}
/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