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

public class Main {
	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] strs = br.readLine().split(" ");
		int n = Integer.parseInt(strs[0]);
		int m = Integer.parseInt(strs[1]);
		int l = Integer.parseInt(strs[2]);

		int[][] list01 = new int[n][m];
		int[][] list02 = new int[m][l];
		long[][] list03 = new long[n][l];

		for (int i = 0; i < n; i++) {
			String[] str = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				list01[i][j] += Integer.parseInt(str[j]);
			}
		}

		for (int i = 0; i < m; i++) {
			String[] str = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				list02[i][j] += Integer.parseInt(str[j]);
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				for (int k = 0; k < l; k++) {
					list03[i][k] += (long) (list01[i][j] * list02[j][k]);
				}
			}
		}

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

	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] strs = br.readLine().split(" ");
		int n = Integer.parseInt(strs[0]);
		int m = Integer.parseInt(strs[1]);
		int l = Integer.parseInt(strs[2]);

		int[][] list01 = new int[n][m];
		int[][] list02 = new int[m][l];
		long[][] list03 = new long[n][l];

		for (int i = 0; i < n; i++) {
			String[] str = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				list01[i][j] += Integer.parseInt(str[j]);
			}
		}

		for (int i = 0; i < m; i++) {
			String[] str = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				list02[i][j] += Integer.parseInt(str[j]);
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				for (int k = 0; k < l; k++) {
					list03[i][k] += (long) (list01[i][j] * list02[j][k]);
				}
			}
		}

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

	}
} Main public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] strs = br.readLine().split(" ");
		int n = Integer.parseInt(strs[0]);
		int m = Integer.parseInt(strs[1]);
		int l = Integer.parseInt(strs[2]);

		int[][] list01 = new int[n][m];
		int[][] list02 = new int[m][l];
		long[][] list03 = new long[n][l];

		for (int i = 0; i < n; i++) {
			String[] str = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				list01[i][j] += Integer.parseInt(str[j]);
			}
		}

		for (int i = 0; i < m; i++) {
			String[] str = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				list02[i][j] += Integer.parseInt(str[j]);
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				for (int k = 0; k < l; k++) {
					list03[i][k] += (long) (list01[i][j] * list02[j][k]);
				}
			}
		}

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

	} main {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] strs = br.readLine().split(" ");
		int n = Integer.parseInt(strs[0]);
		int m = Integer.parseInt(strs[1]);
		int l = Integer.parseInt(strs[2]);

		int[][] list01 = new int[n][m];
		int[][] list02 = new int[m][l];
		long[][] list03 = new long[n][l];

		for (int i = 0; i < n; i++) {
			String[] str = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				list01[i][j] += Integer.parseInt(str[j]);
			}
		}

		for (int i = 0; i < m; i++) {
			String[] str = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				list02[i][j] += Integer.parseInt(str[j]);
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				for (int k = 0; k < l; k++) {
					list03[i][k] += (long) (list01[i][j] * list02[j][k]);
				}
			}
		}

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

	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] strs = br.readLine().split(" "); strs br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int n = Integer.parseInt(strs[0]); n Integer.parseInt(strs[0]) Integer.parseInt Integer strs[0] strs 0 int m = Integer.parseInt(strs[1]); m Integer.parseInt(strs[1]) Integer.parseInt Integer strs[1] strs 1 int l = Integer.parseInt(strs[2]); l Integer.parseInt(strs[2]) Integer.parseInt Integer strs[2] strs 2 int[][] list01 = new int[n][m]; list01 new int[n][m] n m int[][] list02 = new int[m][l]; list02 new int[m][l] m l long[][] list03 = new long[n][l]; list03 new long[n][l] n l for (int i = 0; i < n; i++) {
			String[] str = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				list01[i][j] += Integer.parseInt(str[j]);
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			String[] str = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				list01[i][j] += Integer.parseInt(str[j]);
			}
		} {
			String[] str = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				list01[i][j] += Integer.parseInt(str[j]);
			}
		} String[] str = br.readLine().split(" "); str br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " for (int j = 0; j < m; j++) {
				list01[i][j] += Integer.parseInt(str[j]);
			} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
				list01[i][j] += Integer.parseInt(str[j]);
			} {
				list01[i][j] += Integer.parseInt(str[j]);
			} list01[i][j] += Integer.parseInt(str[j]) list01[i][j] list01[i] list01 i j Integer.parseInt(str[j]) Integer.parseInt Integer str[j] str j for (int i = 0; i < m; i++) {
			String[] str = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				list02[i][j] += Integer.parseInt(str[j]);
			}
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
			String[] str = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				list02[i][j] += Integer.parseInt(str[j]);
			}
		} {
			String[] str = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				list02[i][j] += Integer.parseInt(str[j]);
			}
		} String[] str = br.readLine().split(" "); str br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " for (int j = 0; j < l; j++) {
				list02[i][j] += Integer.parseInt(str[j]);
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				list02[i][j] += Integer.parseInt(str[j]);
			} {
				list02[i][j] += Integer.parseInt(str[j]);
			} list02[i][j] += Integer.parseInt(str[j]) list02[i][j] list02[i] list02 i j Integer.parseInt(str[j]) Integer.parseInt Integer str[j] str j for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				for (int k = 0; k < l; k++) {
					list03[i][k] += (long) (list01[i][j] * list02[j][k]);
				}
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			for (int j = 0; j < m; j++) {
				for (int k = 0; k < l; k++) {
					list03[i][k] += (long) (list01[i][j] * list02[j][k]);
				}
			}
		} {
			for (int j = 0; j < m; j++) {
				for (int k = 0; k < l; k++) {
					list03[i][k] += (long) (list01[i][j] * list02[j][k]);
				}
			}
		} for (int j = 0; j < m; j++) {
				for (int k = 0; k < l; k++) {
					list03[i][k] += (long) (list01[i][j] * list02[j][k]);
				}
			} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
				for (int k = 0; k < l; k++) {
					list03[i][k] += (long) (list01[i][j] * list02[j][k]);
				}
			} {
				for (int k = 0; k < l; k++) {
					list03[i][k] += (long) (list01[i][j] * list02[j][k]);
				}
			} for (int k = 0; k < l; k++) {
					list03[i][k] += (long) (list01[i][j] * list02[j][k]);
				} int k = 0; int k = 0; k 0 k < l k l k++ k++ k {
					list03[i][k] += (long) (list01[i][j] * list02[j][k]);
				} {
					list03[i][k] += (long) (list01[i][j] * list02[j][k]);
				} list03[i][k] += (long) (list01[i][j] * list02[j][k]) list03[i][k] list03[i] list03 i k (long) (list01[i][j] * list02[j][k]) list01[i][j] list01[i] list01 i j list02[j][k] list02[j] list02 j k for (int i = 0; i < n; i++) {
			for (int j = 0; j < (l - 1); j++) {
				System.out.print(list03[i][j] + " ");
			}
			System.out.println(list03[i][l - 1]);
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			for (int j = 0; j < (l - 1); j++) {
				System.out.print(list03[i][j] + " ");
			}
			System.out.println(list03[i][l - 1]);
		} {
			for (int j = 0; j < (l - 1); j++) {
				System.out.print(list03[i][j] + " ");
			}
			System.out.println(list03[i][l - 1]);
		} for (int j = 0; j < (l - 1); j++) {
				System.out.print(list03[i][j] + " ");
			} int j = 0; int j = 0; j 0 j < (l - 1) j (l - 1) l 1 j++ j++ j {
				System.out.print(list03[i][j] + " ");
			} {
				System.out.print(list03[i][j] + " ");
			} System.out.print(list03[i][j] + " ") System.out.print System.out System System.out list03[i][j] + " " list03[i][j] list03[i] list03 i j " " System.out.println(list03[i][l - 1]) System.out.println System.out System System.out list03[i][l - 1] list03[i] list03 i l - 1 l 1 String[] args args public class Main {
	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] strs = br.readLine().split(" ");
		int n = Integer.parseInt(strs[0]);
		int m = Integer.parseInt(strs[1]);
		int l = Integer.parseInt(strs[2]);

		int[][] list01 = new int[n][m];
		int[][] list02 = new int[m][l];
		long[][] list03 = new long[n][l];

		for (int i = 0; i < n; i++) {
			String[] str = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				list01[i][j] += Integer.parseInt(str[j]);
			}
		}

		for (int i = 0; i < m; i++) {
			String[] str = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				list02[i][j] += Integer.parseInt(str[j]);
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				for (int k = 0; k < l; k++) {
					list03[i][k] += (long) (list01[i][j] * list02[j][k]);
				}
			}
		}

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

	}
} public class Main {
	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] strs = br.readLine().split(" ");
		int n = Integer.parseInt(strs[0]);
		int m = Integer.parseInt(strs[1]);
		int l = Integer.parseInt(strs[2]);

		int[][] list01 = new int[n][m];
		int[][] list02 = new int[m][l];
		long[][] list03 = new long[n][l];

		for (int i = 0; i < n; i++) {
			String[] str = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				list01[i][j] += Integer.parseInt(str[j]);
			}
		}

		for (int i = 0; i < m; i++) {
			String[] str = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				list02[i][j] += Integer.parseInt(str[j]);
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				for (int k = 0; k < l; k++) {
					list03[i][k] += (long) (list01[i][j] * list02[j][k]);
				}
			}
		}

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

	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] strs = br.readLine().split(" ");
		int n = Integer.parseInt(strs[0]);
		int m = Integer.parseInt(strs[1]);
		int l = Integer.parseInt(strs[2]);

		int[][] list01 = new int[n][m];
		int[][] list02 = new int[m][l];
		long[][] list03 = new long[n][l];

		for (int i = 0; i < n; i++) {
			String[] str = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				list01[i][j] += Integer.parseInt(str[j]);
			}
		}

		for (int i = 0; i < m; i++) {
			String[] str = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				list02[i][j] += Integer.parseInt(str[j]);
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				for (int k = 0; k < l; k++) {
					list03[i][k] += (long) (list01[i][j] * list02[j][k]);
				}
			}
		}

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

	}
}