import java.util.Scanner;

class Main {

	public static void main(String[] args) {

		int n, m, l;

		Scanner stdIn = new Scanner(System.in);

		n = stdIn.nextInt();
		m = stdIn.nextInt();
		l = stdIn.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++) {
				matrixA[i][j] = stdIn.nextInt();
			}
		}

		for (int i = 0; i < m; i++) {
			for (int j = 0; j < l; j++) {
				matrixB[i][j] = stdIn.nextInt();
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				for (int k = 0; k < m; k++) {
					matrixC[i][j] += matrixA[i][k] * matrixB[k][j];
//					System.out.println("i:" + i + " j:" + j + " k:" + k + " " + matrixA[i][k] + " * " + matrixB[k][j] + " C : " + matrixC[i][j]);
				}
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				System.out.print(matrixC[i][j]);
				if (j < l-1) {
					System.out.print(" ");
				}
			}
			
				System.out.println();
			
		}
	}
} import java.util.Scanner; Scanner java.util class Main {

	public static void main(String[] args) {

		int n, m, l;

		Scanner stdIn = new Scanner(System.in);

		n = stdIn.nextInt();
		m = stdIn.nextInt();
		l = stdIn.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++) {
				matrixA[i][j] = stdIn.nextInt();
			}
		}

		for (int i = 0; i < m; i++) {
			for (int j = 0; j < l; j++) {
				matrixB[i][j] = stdIn.nextInt();
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				for (int k = 0; k < m; k++) {
					matrixC[i][j] += matrixA[i][k] * matrixB[k][j];
//					System.out.println("i:" + i + " j:" + j + " k:" + k + " " + matrixA[i][k] + " * " + matrixB[k][j] + " C : " + matrixC[i][j]);
				}
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				System.out.print(matrixC[i][j]);
				if (j < l-1) {
					System.out.print(" ");
				}
			}
			
				System.out.println();
			
		}
	}
} Main public static void main(String[] args) {

		int n, m, l;

		Scanner stdIn = new Scanner(System.in);

		n = stdIn.nextInt();
		m = stdIn.nextInt();
		l = stdIn.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++) {
				matrixA[i][j] = stdIn.nextInt();
			}
		}

		for (int i = 0; i < m; i++) {
			for (int j = 0; j < l; j++) {
				matrixB[i][j] = stdIn.nextInt();
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				for (int k = 0; k < m; k++) {
					matrixC[i][j] += matrixA[i][k] * matrixB[k][j];
//					System.out.println("i:" + i + " j:" + j + " k:" + k + " " + matrixA[i][k] + " * " + matrixB[k][j] + " C : " + matrixC[i][j]);
				}
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				System.out.print(matrixC[i][j]);
				if (j < l-1) {
					System.out.print(" ");
				}
			}
			
				System.out.println();
			
		}
	} main {

		int n, m, l;

		Scanner stdIn = new Scanner(System.in);

		n = stdIn.nextInt();
		m = stdIn.nextInt();
		l = stdIn.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++) {
				matrixA[i][j] = stdIn.nextInt();
			}
		}

		for (int i = 0; i < m; i++) {
			for (int j = 0; j < l; j++) {
				matrixB[i][j] = stdIn.nextInt();
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				for (int k = 0; k < m; k++) {
					matrixC[i][j] += matrixA[i][k] * matrixB[k][j];
//					System.out.println("i:" + i + " j:" + j + " k:" + k + " " + matrixA[i][k] + " * " + matrixB[k][j] + " C : " + matrixC[i][j]);
				}
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				System.out.print(matrixC[i][j]);
				if (j < l-1) {
					System.out.print(" ");
				}
			}
			
				System.out.println();
			
		}
	} int n n m m l; l Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) n = stdIn.nextInt() n stdIn.nextInt() stdIn.nextInt stdIn m = stdIn.nextInt() m stdIn.nextInt() stdIn.nextInt stdIn l = stdIn.nextInt() l stdIn.nextInt() stdIn.nextInt stdIn 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++) {
				matrixA[i][j] = stdIn.nextInt();
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			for (int j = 0; j < m; j++) {
				matrixA[i][j] = stdIn.nextInt();
			}
		} {
			for (int j = 0; j < m; j++) {
				matrixA[i][j] = stdIn.nextInt();
			}
		} for (int j = 0; j < m; j++) {
				matrixA[i][j] = stdIn.nextInt();
			} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
				matrixA[i][j] = stdIn.nextInt();
			} {
				matrixA[i][j] = stdIn.nextInt();
			} matrixA[i][j] = stdIn.nextInt() matrixA[i][j] matrixA[i] matrixA i j stdIn.nextInt() stdIn.nextInt stdIn for (int i = 0; i < m; i++) {
			for (int j = 0; j < l; j++) {
				matrixB[i][j] = stdIn.nextInt();
			}
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
			for (int j = 0; j < l; j++) {
				matrixB[i][j] = stdIn.nextInt();
			}
		} {
			for (int j = 0; j < l; j++) {
				matrixB[i][j] = stdIn.nextInt();
			}
		} for (int j = 0; j < l; j++) {
				matrixB[i][j] = stdIn.nextInt();
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				matrixB[i][j] = stdIn.nextInt();
			} {
				matrixB[i][j] = stdIn.nextInt();
			} matrixB[i][j] = stdIn.nextInt() matrixB[i][j] matrixB[i] matrixB i j stdIn.nextInt() stdIn.nextInt stdIn for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				for (int k = 0; k < m; k++) {
					matrixC[i][j] += matrixA[i][k] * matrixB[k][j];
//					System.out.println("i:" + i + " j:" + j + " k:" + k + " " + matrixA[i][k] + " * " + matrixB[k][j] + " C : " + matrixC[i][j]);
				}
			}
		} 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++) {
					matrixC[i][j] += matrixA[i][k] * matrixB[k][j];
//					System.out.println("i:" + i + " j:" + j + " k:" + k + " " + matrixA[i][k] + " * " + matrixB[k][j] + " C : " + matrixC[i][j]);
				}
			}
		} {
			for (int j = 0; j < l; j++) {
				for (int k = 0; k < m; k++) {
					matrixC[i][j] += matrixA[i][k] * matrixB[k][j];
//					System.out.println("i:" + i + " j:" + j + " k:" + k + " " + matrixA[i][k] + " * " + matrixB[k][j] + " C : " + matrixC[i][j]);
				}
			}
		} for (int j = 0; j < l; j++) {
				for (int k = 0; k < m; k++) {
					matrixC[i][j] += matrixA[i][k] * matrixB[k][j];
//					System.out.println("i:" + i + " j:" + j + " k:" + k + " " + matrixA[i][k] + " * " + matrixB[k][j] + " C : " + matrixC[i][j]);
				}
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				for (int k = 0; k < m; k++) {
					matrixC[i][j] += matrixA[i][k] * matrixB[k][j];
//					System.out.println("i:" + i + " j:" + j + " k:" + k + " " + matrixA[i][k] + " * " + matrixB[k][j] + " C : " + matrixC[i][j]);
				}
			} {
				for (int k = 0; k < m; k++) {
					matrixC[i][j] += matrixA[i][k] * matrixB[k][j];
//					System.out.println("i:" + i + " j:" + j + " k:" + k + " " + matrixA[i][k] + " * " + matrixB[k][j] + " C : " + matrixC[i][j]);
				}
			} for (int k = 0; k < m; k++) {
					matrixC[i][j] += matrixA[i][k] * matrixB[k][j];
//					System.out.println("i:" + i + " j:" + j + " k:" + k + " " + matrixA[i][k] + " * " + matrixB[k][j] + " C : " + matrixC[i][j]);
				} int k = 0; int k = 0; k 0 k < m k m k++ k++ k {
					matrixC[i][j] += matrixA[i][k] * matrixB[k][j];
//					System.out.println("i:" + i + " j:" + j + " k:" + k + " " + matrixA[i][k] + " * " + matrixB[k][j] + " C : " + matrixC[i][j]);
				} {
					matrixC[i][j] += matrixA[i][k] * matrixB[k][j];
//					System.out.println("i:" + i + " j:" + j + " k:" + k + " " + matrixA[i][k] + " * " + matrixB[k][j] + " C : " + matrixC[i][j]);
				} matrixC[i][j] += matrixA[i][k] * matrixB[k][j] matrixC[i][j] matrixC[i] matrixC i j matrixA[i][k] * matrixB[k][j] matrixA[i][k] matrixA[i] matrixA i k matrixB[k][j] matrixB[k] matrixB k j for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				System.out.print(matrixC[i][j]);
				if (j < l-1) {
					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++) {
				System.out.print(matrixC[i][j]);
				if (j < l-1) {
					System.out.print(" ");
				}
			}
			
				System.out.println();
			
		} {
			for (int j = 0; j < l; j++) {
				System.out.print(matrixC[i][j]);
				if (j < l-1) {
					System.out.print(" ");
				}
			}
			
				System.out.println();
			
		} for (int j = 0; j < l; j++) {
				System.out.print(matrixC[i][j]);
				if (j < l-1) {
					System.out.print(" ");
				}
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				System.out.print(matrixC[i][j]);
				if (j < l-1) {
					System.out.print(" ");
				}
			} {
				System.out.print(matrixC[i][j]);
				if (j < l-1) {
					System.out.print(" ");
				}
			} 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) {
					System.out.print(" ");
				} j < l-1 j l-1 l 1 {
					System.out.print(" ");
				} System.out.print(" ") System.out.print System.out System System.out " " System.out.println() System.out.println System.out System System.out String[] args args
import java.util.Scanner;

class Main {

	public static void main(String[] args) {

		int n, m, l;

		Scanner stdIn = new Scanner(System.in);

		n = stdIn.nextInt();
		m = stdIn.nextInt();
		l = stdIn.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++) {
				matrixA[i][j] = stdIn.nextInt();
			}
		}

		for (int i = 0; i < m; i++) {
			for (int j = 0; j < l; j++) {
				matrixB[i][j] = stdIn.nextInt();
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				for (int k = 0; k < m; k++) {
					matrixC[i][j] += matrixA[i][k] * matrixB[k][j];
//					System.out.println("i:" + i + " j:" + j + " k:" + k + " " + matrixA[i][k] + " * " + matrixB[k][j] + " C : " + matrixC[i][j]);
				}
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				System.out.print(matrixC[i][j]);
				if (j < l-1) {
					System.out.print(" ");
				}
			}
			
				System.out.println();
			
		}
	}
}