import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String buffer;

		int count = 0;
		int m = 0;
		int n = 0;
		int l = 0;
		int[][] matrix1 = null;
		int[][] matrix2 = null;
		try {
			while ((buffer = reader.readLine())  != null) {
				String[] input = buffer.split(" ");

				if (count == 0) {
					n = Integer.valueOf(input[0]);
					m = Integer.valueOf(input[1]);
					l = Integer.valueOf(input[2]);
					matrix1 = new int[n][m];
					matrix2 = new int[m][l];
				}
				else if (count <= n) {
					for (int i = 0; i < m; i++) {
						matrix1[count - 1][i] = Integer.valueOf(input[i]);
					}
				}
				else if (count <= n + m) {
					for (int i = 0; i < l; i++) {
						matrix2[count - 1 - n][i] = Integer.valueOf(input[i]);
					}
				}
				if (count == n + m) {
					for (int h = 0; h < n; h++) {
						for (int w = 0; w < l; w++) {
							long calc = 0;
							for (int i = 0; i < m; i++) {
								calc += matrix1[h][i] * matrix2[i][w];
							}
							System.out.print(calc);
							if (w != l - 1) {
								System.out.print(" ");
							}
							else {
								System.out.println();
							}
						}
					}
					//output
					reader.close();
					return;
				}

				count++;
			}
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}
}
 import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String buffer;

		int count = 0;
		int m = 0;
		int n = 0;
		int l = 0;
		int[][] matrix1 = null;
		int[][] matrix2 = null;
		try {
			while ((buffer = reader.readLine())  != null) {
				String[] input = buffer.split(" ");

				if (count == 0) {
					n = Integer.valueOf(input[0]);
					m = Integer.valueOf(input[1]);
					l = Integer.valueOf(input[2]);
					matrix1 = new int[n][m];
					matrix2 = new int[m][l];
				}
				else if (count <= n) {
					for (int i = 0; i < m; i++) {
						matrix1[count - 1][i] = Integer.valueOf(input[i]);
					}
				}
				else if (count <= n + m) {
					for (int i = 0; i < l; i++) {
						matrix2[count - 1 - n][i] = Integer.valueOf(input[i]);
					}
				}
				if (count == n + m) {
					for (int h = 0; h < n; h++) {
						for (int w = 0; w < l; w++) {
							long calc = 0;
							for (int i = 0; i < m; i++) {
								calc += matrix1[h][i] * matrix2[i][w];
							}
							System.out.print(calc);
							if (w != l - 1) {
								System.out.print(" ");
							}
							else {
								System.out.println();
							}
						}
					}
					//output
					reader.close();
					return;
				}

				count++;
			}
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}
} Main public static void main(String[] args) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String buffer;

		int count = 0;
		int m = 0;
		int n = 0;
		int l = 0;
		int[][] matrix1 = null;
		int[][] matrix2 = null;
		try {
			while ((buffer = reader.readLine())  != null) {
				String[] input = buffer.split(" ");

				if (count == 0) {
					n = Integer.valueOf(input[0]);
					m = Integer.valueOf(input[1]);
					l = Integer.valueOf(input[2]);
					matrix1 = new int[n][m];
					matrix2 = new int[m][l];
				}
				else if (count <= n) {
					for (int i = 0; i < m; i++) {
						matrix1[count - 1][i] = Integer.valueOf(input[i]);
					}
				}
				else if (count <= n + m) {
					for (int i = 0; i < l; i++) {
						matrix2[count - 1 - n][i] = Integer.valueOf(input[i]);
					}
				}
				if (count == n + m) {
					for (int h = 0; h < n; h++) {
						for (int w = 0; w < l; w++) {
							long calc = 0;
							for (int i = 0; i < m; i++) {
								calc += matrix1[h][i] * matrix2[i][w];
							}
							System.out.print(calc);
							if (w != l - 1) {
								System.out.print(" ");
							}
							else {
								System.out.println();
							}
						}
					}
					//output
					reader.close();
					return;
				}

				count++;
			}
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	} main {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String buffer;

		int count = 0;
		int m = 0;
		int n = 0;
		int l = 0;
		int[][] matrix1 = null;
		int[][] matrix2 = null;
		try {
			while ((buffer = reader.readLine())  != null) {
				String[] input = buffer.split(" ");

				if (count == 0) {
					n = Integer.valueOf(input[0]);
					m = Integer.valueOf(input[1]);
					l = Integer.valueOf(input[2]);
					matrix1 = new int[n][m];
					matrix2 = new int[m][l];
				}
				else if (count <= n) {
					for (int i = 0; i < m; i++) {
						matrix1[count - 1][i] = Integer.valueOf(input[i]);
					}
				}
				else if (count <= n + m) {
					for (int i = 0; i < l; i++) {
						matrix2[count - 1 - n][i] = Integer.valueOf(input[i]);
					}
				}
				if (count == n + m) {
					for (int h = 0; h < n; h++) {
						for (int w = 0; w < l; w++) {
							long calc = 0;
							for (int i = 0; i < m; i++) {
								calc += matrix1[h][i] * matrix2[i][w];
							}
							System.out.print(calc);
							if (w != l - 1) {
								System.out.print(" ");
							}
							else {
								System.out.println();
							}
						}
					}
					//output
					reader.close();
					return;
				}

				count++;
			}
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	} BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) String buffer; buffer int count = 0; count 0 int m = 0; m 0 int n = 0; n 0 int l = 0; l 0 int[][] matrix1 = null; matrix1 null int[][] matrix2 = null; matrix2 null try {
			while ((buffer = reader.readLine())  != null) {
				String[] input = buffer.split(" ");

				if (count == 0) {
					n = Integer.valueOf(input[0]);
					m = Integer.valueOf(input[1]);
					l = Integer.valueOf(input[2]);
					matrix1 = new int[n][m];
					matrix2 = new int[m][l];
				}
				else if (count <= n) {
					for (int i = 0; i < m; i++) {
						matrix1[count - 1][i] = Integer.valueOf(input[i]);
					}
				}
				else if (count <= n + m) {
					for (int i = 0; i < l; i++) {
						matrix2[count - 1 - n][i] = Integer.valueOf(input[i]);
					}
				}
				if (count == n + m) {
					for (int h = 0; h < n; h++) {
						for (int w = 0; w < l; w++) {
							long calc = 0;
							for (int i = 0; i < m; i++) {
								calc += matrix1[h][i] * matrix2[i][w];
							}
							System.out.print(calc);
							if (w != l - 1) {
								System.out.print(" ");
							}
							else {
								System.out.println();
							}
						}
					}
					//output
					reader.close();
					return;
				}

				count++;
			}
		} catch (Exception ex) {
			ex.printStackTrace();
		} catch (Exception ex) {
			ex.printStackTrace();
		} Exception ex {
			ex.printStackTrace();
		} ex.printStackTrace() ex.printStackTrace ex {
			while ((buffer = reader.readLine())  != null) {
				String[] input = buffer.split(" ");

				if (count == 0) {
					n = Integer.valueOf(input[0]);
					m = Integer.valueOf(input[1]);
					l = Integer.valueOf(input[2]);
					matrix1 = new int[n][m];
					matrix2 = new int[m][l];
				}
				else if (count <= n) {
					for (int i = 0; i < m; i++) {
						matrix1[count - 1][i] = Integer.valueOf(input[i]);
					}
				}
				else if (count <= n + m) {
					for (int i = 0; i < l; i++) {
						matrix2[count - 1 - n][i] = Integer.valueOf(input[i]);
					}
				}
				if (count == n + m) {
					for (int h = 0; h < n; h++) {
						for (int w = 0; w < l; w++) {
							long calc = 0;
							for (int i = 0; i < m; i++) {
								calc += matrix1[h][i] * matrix2[i][w];
							}
							System.out.print(calc);
							if (w != l - 1) {
								System.out.print(" ");
							}
							else {
								System.out.println();
							}
						}
					}
					//output
					reader.close();
					return;
				}

				count++;
			}
		} while ((buffer = reader.readLine())  != null) {
				String[] input = buffer.split(" ");

				if (count == 0) {
					n = Integer.valueOf(input[0]);
					m = Integer.valueOf(input[1]);
					l = Integer.valueOf(input[2]);
					matrix1 = new int[n][m];
					matrix2 = new int[m][l];
				}
				else if (count <= n) {
					for (int i = 0; i < m; i++) {
						matrix1[count - 1][i] = Integer.valueOf(input[i]);
					}
				}
				else if (count <= n + m) {
					for (int i = 0; i < l; i++) {
						matrix2[count - 1 - n][i] = Integer.valueOf(input[i]);
					}
				}
				if (count == n + m) {
					for (int h = 0; h < n; h++) {
						for (int w = 0; w < l; w++) {
							long calc = 0;
							for (int i = 0; i < m; i++) {
								calc += matrix1[h][i] * matrix2[i][w];
							}
							System.out.print(calc);
							if (w != l - 1) {
								System.out.print(" ");
							}
							else {
								System.out.println();
							}
						}
					}
					//output
					reader.close();
					return;
				}

				count++;
			} (buffer = reader.readLine())  != null (buffer = reader.readLine()) buffer reader.readLine() reader.readLine reader null {
				String[] input = buffer.split(" ");

				if (count == 0) {
					n = Integer.valueOf(input[0]);
					m = Integer.valueOf(input[1]);
					l = Integer.valueOf(input[2]);
					matrix1 = new int[n][m];
					matrix2 = new int[m][l];
				}
				else if (count <= n) {
					for (int i = 0; i < m; i++) {
						matrix1[count - 1][i] = Integer.valueOf(input[i]);
					}
				}
				else if (count <= n + m) {
					for (int i = 0; i < l; i++) {
						matrix2[count - 1 - n][i] = Integer.valueOf(input[i]);
					}
				}
				if (count == n + m) {
					for (int h = 0; h < n; h++) {
						for (int w = 0; w < l; w++) {
							long calc = 0;
							for (int i = 0; i < m; i++) {
								calc += matrix1[h][i] * matrix2[i][w];
							}
							System.out.print(calc);
							if (w != l - 1) {
								System.out.print(" ");
							}
							else {
								System.out.println();
							}
						}
					}
					//output
					reader.close();
					return;
				}

				count++;
			} String[] input = buffer.split(" "); input buffer.split(" ") buffer.split buffer " " if (count == 0) {
					n = Integer.valueOf(input[0]);
					m = Integer.valueOf(input[1]);
					l = Integer.valueOf(input[2]);
					matrix1 = new int[n][m];
					matrix2 = new int[m][l];
				}
				else if (count <= n) {
					for (int i = 0; i < m; i++) {
						matrix1[count - 1][i] = Integer.valueOf(input[i]);
					}
				}
				else if (count <= n + m) {
					for (int i = 0; i < l; i++) {
						matrix2[count - 1 - n][i] = Integer.valueOf(input[i]);
					}
				} count == 0 count 0 {
					n = Integer.valueOf(input[0]);
					m = Integer.valueOf(input[1]);
					l = Integer.valueOf(input[2]);
					matrix1 = new int[n][m];
					matrix2 = new int[m][l];
				} n = Integer.valueOf(input[0]) n Integer.valueOf(input[0]) Integer.valueOf Integer input[0] input 0 m = Integer.valueOf(input[1]) m Integer.valueOf(input[1]) Integer.valueOf Integer input[1] input 1 l = Integer.valueOf(input[2]) l Integer.valueOf(input[2]) Integer.valueOf Integer input[2] input 2 matrix1 = new int[n][m] matrix1 new int[n][m] n m matrix2 = new int[m][l] matrix2 new int[m][l] m l if (count <= n) {
					for (int i = 0; i < m; i++) {
						matrix1[count - 1][i] = Integer.valueOf(input[i]);
					}
				}
				else if (count <= n + m) {
					for (int i = 0; i < l; i++) {
						matrix2[count - 1 - n][i] = Integer.valueOf(input[i]);
					}
				} count <= n count n {
					for (int i = 0; i < m; i++) {
						matrix1[count - 1][i] = Integer.valueOf(input[i]);
					}
				} for (int i = 0; i < m; i++) {
						matrix1[count - 1][i] = Integer.valueOf(input[i]);
					} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
						matrix1[count - 1][i] = Integer.valueOf(input[i]);
					} {
						matrix1[count - 1][i] = Integer.valueOf(input[i]);
					} matrix1[count - 1][i] = Integer.valueOf(input[i]) matrix1[count - 1][i] matrix1[count - 1] matrix1 count - 1 count 1 i Integer.valueOf(input[i]) Integer.valueOf Integer input[i] input i if (count <= n + m) {
					for (int i = 0; i < l; i++) {
						matrix2[count - 1 - n][i] = Integer.valueOf(input[i]);
					}
				} count <= n + m count n + m n m {
					for (int i = 0; i < l; i++) {
						matrix2[count - 1 - n][i] = Integer.valueOf(input[i]);
					}
				} for (int i = 0; i < l; i++) {
						matrix2[count - 1 - n][i] = Integer.valueOf(input[i]);
					} int i = 0; int i = 0; i 0 i < l i l i++ i++ i {
						matrix2[count - 1 - n][i] = Integer.valueOf(input[i]);
					} {
						matrix2[count - 1 - n][i] = Integer.valueOf(input[i]);
					} matrix2[count - 1 - n][i] = Integer.valueOf(input[i]) matrix2[count - 1 - n][i] matrix2[count - 1 - n] matrix2 count - 1 - n count - 1 - n count 1 n i Integer.valueOf(input[i]) Integer.valueOf Integer input[i] input i if (count == n + m) {
					for (int h = 0; h < n; h++) {
						for (int w = 0; w < l; w++) {
							long calc = 0;
							for (int i = 0; i < m; i++) {
								calc += matrix1[h][i] * matrix2[i][w];
							}
							System.out.print(calc);
							if (w != l - 1) {
								System.out.print(" ");
							}
							else {
								System.out.println();
							}
						}
					}
					//output
					reader.close();
					return;
				} count == n + m count n + m n m {
					for (int h = 0; h < n; h++) {
						for (int w = 0; w < l; w++) {
							long calc = 0;
							for (int i = 0; i < m; i++) {
								calc += matrix1[h][i] * matrix2[i][w];
							}
							System.out.print(calc);
							if (w != l - 1) {
								System.out.print(" ");
							}
							else {
								System.out.println();
							}
						}
					}
					//output
					reader.close();
					return;
				} for (int h = 0; h < n; h++) {
						for (int w = 0; w < l; w++) {
							long calc = 0;
							for (int i = 0; i < m; i++) {
								calc += matrix1[h][i] * matrix2[i][w];
							}
							System.out.print(calc);
							if (w != l - 1) {
								System.out.print(" ");
							}
							else {
								System.out.println();
							}
						}
					} int h = 0; int h = 0; h 0 h < n h n h++ h++ h {
						for (int w = 0; w < l; w++) {
							long calc = 0;
							for (int i = 0; i < m; i++) {
								calc += matrix1[h][i] * matrix2[i][w];
							}
							System.out.print(calc);
							if (w != l - 1) {
								System.out.print(" ");
							}
							else {
								System.out.println();
							}
						}
					} {
						for (int w = 0; w < l; w++) {
							long calc = 0;
							for (int i = 0; i < m; i++) {
								calc += matrix1[h][i] * matrix2[i][w];
							}
							System.out.print(calc);
							if (w != l - 1) {
								System.out.print(" ");
							}
							else {
								System.out.println();
							}
						}
					} for (int w = 0; w < l; w++) {
							long calc = 0;
							for (int i = 0; i < m; i++) {
								calc += matrix1[h][i] * matrix2[i][w];
							}
							System.out.print(calc);
							if (w != l - 1) {
								System.out.print(" ");
							}
							else {
								System.out.println();
							}
						} int w = 0; int w = 0; w 0 w < l w l w++ w++ w {
							long calc = 0;
							for (int i = 0; i < m; i++) {
								calc += matrix1[h][i] * matrix2[i][w];
							}
							System.out.print(calc);
							if (w != l - 1) {
								System.out.print(" ");
							}
							else {
								System.out.println();
							}
						} {
							long calc = 0;
							for (int i = 0; i < m; i++) {
								calc += matrix1[h][i] * matrix2[i][w];
							}
							System.out.print(calc);
							if (w != l - 1) {
								System.out.print(" ");
							}
							else {
								System.out.println();
							}
						} long calc = 0; calc 0 for (int i = 0; i < m; i++) {
								calc += matrix1[h][i] * matrix2[i][w];
							} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
								calc += matrix1[h][i] * matrix2[i][w];
							} {
								calc += matrix1[h][i] * matrix2[i][w];
							} calc += matrix1[h][i] * matrix2[i][w] calc matrix1[h][i] * matrix2[i][w] matrix1[h][i] matrix1[h] matrix1 h i matrix2[i][w] matrix2[i] matrix2 i w System.out.print(calc) System.out.print System.out System System.out calc if (w != l - 1) {
								System.out.print(" ");
							}
							else {
								System.out.println();
							} w != l - 1 w 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.println System.out System System.out reader.close() reader.close reader return; count++ count String[] args args public class Main {

	public static void main(String[] args) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String buffer;

		int count = 0;
		int m = 0;
		int n = 0;
		int l = 0;
		int[][] matrix1 = null;
		int[][] matrix2 = null;
		try {
			while ((buffer = reader.readLine())  != null) {
				String[] input = buffer.split(" ");

				if (count == 0) {
					n = Integer.valueOf(input[0]);
					m = Integer.valueOf(input[1]);
					l = Integer.valueOf(input[2]);
					matrix1 = new int[n][m];
					matrix2 = new int[m][l];
				}
				else if (count <= n) {
					for (int i = 0; i < m; i++) {
						matrix1[count - 1][i] = Integer.valueOf(input[i]);
					}
				}
				else if (count <= n + m) {
					for (int i = 0; i < l; i++) {
						matrix2[count - 1 - n][i] = Integer.valueOf(input[i]);
					}
				}
				if (count == n + m) {
					for (int h = 0; h < n; h++) {
						for (int w = 0; w < l; w++) {
							long calc = 0;
							for (int i = 0; i < m; i++) {
								calc += matrix1[h][i] * matrix2[i][w];
							}
							System.out.print(calc);
							if (w != l - 1) {
								System.out.print(" ");
							}
							else {
								System.out.println();
							}
						}
					}
					//output
					reader.close();
					return;
				}

				count++;
			}
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}
} public class Main {

	public static void main(String[] args) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String buffer;

		int count = 0;
		int m = 0;
		int n = 0;
		int l = 0;
		int[][] matrix1 = null;
		int[][] matrix2 = null;
		try {
			while ((buffer = reader.readLine())  != null) {
				String[] input = buffer.split(" ");

				if (count == 0) {
					n = Integer.valueOf(input[0]);
					m = Integer.valueOf(input[1]);
					l = Integer.valueOf(input[2]);
					matrix1 = new int[n][m];
					matrix2 = new int[m][l];
				}
				else if (count <= n) {
					for (int i = 0; i < m; i++) {
						matrix1[count - 1][i] = Integer.valueOf(input[i]);
					}
				}
				else if (count <= n + m) {
					for (int i = 0; i < l; i++) {
						matrix2[count - 1 - n][i] = Integer.valueOf(input[i]);
					}
				}
				if (count == n + m) {
					for (int h = 0; h < n; h++) {
						for (int w = 0; w < l; w++) {
							long calc = 0;
							for (int i = 0; i < m; i++) {
								calc += matrix1[h][i] * matrix2[i][w];
							}
							System.out.print(calc);
							if (w != l - 1) {
								System.out.print(" ");
							}
							else {
								System.out.println();
							}
						}
					}
					//output
					reader.close();
					return;
				}

				count++;
			}
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String buffer;

		int count = 0;
		int m = 0;
		int n = 0;
		int l = 0;
		int[][] matrix1 = null;
		int[][] matrix2 = null;
		try {
			while ((buffer = reader.readLine())  != null) {
				String[] input = buffer.split(" ");

				if (count == 0) {
					n = Integer.valueOf(input[0]);
					m = Integer.valueOf(input[1]);
					l = Integer.valueOf(input[2]);
					matrix1 = new int[n][m];
					matrix2 = new int[m][l];
				}
				else if (count <= n) {
					for (int i = 0; i < m; i++) {
						matrix1[count - 1][i] = Integer.valueOf(input[i]);
					}
				}
				else if (count <= n + m) {
					for (int i = 0; i < l; i++) {
						matrix2[count - 1 - n][i] = Integer.valueOf(input[i]);
					}
				}
				if (count == n + m) {
					for (int h = 0; h < n; h++) {
						for (int w = 0; w < l; w++) {
							long calc = 0;
							for (int i = 0; i < m; i++) {
								calc += matrix1[h][i] * matrix2[i][w];
							}
							System.out.print(calc);
							if (w != l - 1) {
								System.out.print(" ");
							}
							else {
								System.out.println();
							}
						}
					}
					//output
					reader.close();
					return;
				}

				count++;
			}
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}
}

