import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
while (in.hasNext()) {
int row1 = in.nextInt();
int col1 = in.nextInt();
int col2 = in.nextInt();
int[][] m1 = new int[row1][col1];
int[][] m2 = new int[col1][col2];
for (int i = 0; i < row1; i++) {
for (int j = 0; j < col1; j++) {
m1[i][j] = in.nextInt();
}
}
for (int i = 0; i < col1; i++) {
for (int j = 0; j < col2; j++) {
m2[i][j] = in.nextInt();
}
}
multiply(row1, col1, col2, m1, m2);
}
}
public static void multiply(int row1, int col1, int col2, int[][] m1, int[][] m2) {
int[][] res = new int[row1][col2];
for (int i = 0; i < row1; i++) {
for (int j = 0; j < col2; j++) {
for (int k = 0; k < col1; k++) {
res[i][j] += m1[i][k] * m2[k][j];
}
if (j != col2 - 1) {
System.out.print(res[i][j] + " ");
} else
System.out.println(res[i][j]);
}
}
}
}