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

public class Main {
	
	public static void main(String[] args) {
		try {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			String input = reader.readLine();
			String[] array = input.split(" ");
			int n = Integer.parseInt(array[0]);
			int m = Integer.parseInt(array[1]);
			int l = Integer.parseInt(array[2]);

			long a[][] = new long[n][m];
			for (int i = 0; i < n; i++) {
				input = reader.readLine();
				array = input.split(" ");
				for (int j = 0; j < m; j++) {
					a[i][j] = Long.parseLong(array[j]);
				}
			}

			long b[][] = new long[m][l];
			for (int i = 0; i < m; i++) {
				input = reader.readLine();
				array = input.split(" ");
				for (int j = 0; j < l; j++) {
					b[i][j] = Long.parseLong(array[j]);
				}
			}
			long[][] c = new long[n][l];
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					for (int k = 0; k < m; k++) {
						c[i][j] += a[i][k] * b[k][j];
					}
					System.out.print(c[i][j]);
					if (j != (l - 1)) {
						System.out.print(" ");
					}
					
				}
				System.out.println();
			}
			
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} 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) {
		try {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			String input = reader.readLine();
			String[] array = input.split(" ");
			int n = Integer.parseInt(array[0]);
			int m = Integer.parseInt(array[1]);
			int l = Integer.parseInt(array[2]);

			long a[][] = new long[n][m];
			for (int i = 0; i < n; i++) {
				input = reader.readLine();
				array = input.split(" ");
				for (int j = 0; j < m; j++) {
					a[i][j] = Long.parseLong(array[j]);
				}
			}

			long b[][] = new long[m][l];
			for (int i = 0; i < m; i++) {
				input = reader.readLine();
				array = input.split(" ");
				for (int j = 0; j < l; j++) {
					b[i][j] = Long.parseLong(array[j]);
				}
			}
			long[][] c = new long[n][l];
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					for (int k = 0; k < m; k++) {
						c[i][j] += a[i][k] * b[k][j];
					}
					System.out.print(c[i][j]);
					if (j != (l - 1)) {
						System.out.print(" ");
					}
					
				}
				System.out.println();
			}
			
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} Main public static void main(String[] args) {
		try {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			String input = reader.readLine();
			String[] array = input.split(" ");
			int n = Integer.parseInt(array[0]);
			int m = Integer.parseInt(array[1]);
			int l = Integer.parseInt(array[2]);

			long a[][] = new long[n][m];
			for (int i = 0; i < n; i++) {
				input = reader.readLine();
				array = input.split(" ");
				for (int j = 0; j < m; j++) {
					a[i][j] = Long.parseLong(array[j]);
				}
			}

			long b[][] = new long[m][l];
			for (int i = 0; i < m; i++) {
				input = reader.readLine();
				array = input.split(" ");
				for (int j = 0; j < l; j++) {
					b[i][j] = Long.parseLong(array[j]);
				}
			}
			long[][] c = new long[n][l];
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					for (int k = 0; k < m; k++) {
						c[i][j] += a[i][k] * b[k][j];
					}
					System.out.print(c[i][j]);
					if (j != (l - 1)) {
						System.out.print(" ");
					}
					
				}
				System.out.println();
			}
			
		} catch (IOException e) {
			e.printStackTrace();
		}
	} main {
		try {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			String input = reader.readLine();
			String[] array = input.split(" ");
			int n = Integer.parseInt(array[0]);
			int m = Integer.parseInt(array[1]);
			int l = Integer.parseInt(array[2]);

			long a[][] = new long[n][m];
			for (int i = 0; i < n; i++) {
				input = reader.readLine();
				array = input.split(" ");
				for (int j = 0; j < m; j++) {
					a[i][j] = Long.parseLong(array[j]);
				}
			}

			long b[][] = new long[m][l];
			for (int i = 0; i < m; i++) {
				input = reader.readLine();
				array = input.split(" ");
				for (int j = 0; j < l; j++) {
					b[i][j] = Long.parseLong(array[j]);
				}
			}
			long[][] c = new long[n][l];
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					for (int k = 0; k < m; k++) {
						c[i][j] += a[i][k] * b[k][j];
					}
					System.out.print(c[i][j]);
					if (j != (l - 1)) {
						System.out.print(" ");
					}
					
				}
				System.out.println();
			}
			
		} catch (IOException e) {
			e.printStackTrace();
		}
	} try {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			String input = reader.readLine();
			String[] array = input.split(" ");
			int n = Integer.parseInt(array[0]);
			int m = Integer.parseInt(array[1]);
			int l = Integer.parseInt(array[2]);

			long a[][] = new long[n][m];
			for (int i = 0; i < n; i++) {
				input = reader.readLine();
				array = input.split(" ");
				for (int j = 0; j < m; j++) {
					a[i][j] = Long.parseLong(array[j]);
				}
			}

			long b[][] = new long[m][l];
			for (int i = 0; i < m; i++) {
				input = reader.readLine();
				array = input.split(" ");
				for (int j = 0; j < l; j++) {
					b[i][j] = Long.parseLong(array[j]);
				}
			}
			long[][] c = new long[n][l];
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					for (int k = 0; k < m; k++) {
						c[i][j] += a[i][k] * b[k][j];
					}
					System.out.print(c[i][j]);
					if (j != (l - 1)) {
						System.out.print(" ");
					}
					
				}
				System.out.println();
			}
			
		} catch (IOException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} IOException e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			String input = reader.readLine();
			String[] array = input.split(" ");
			int n = Integer.parseInt(array[0]);
			int m = Integer.parseInt(array[1]);
			int l = Integer.parseInt(array[2]);

			long a[][] = new long[n][m];
			for (int i = 0; i < n; i++) {
				input = reader.readLine();
				array = input.split(" ");
				for (int j = 0; j < m; j++) {
					a[i][j] = Long.parseLong(array[j]);
				}
			}

			long b[][] = new long[m][l];
			for (int i = 0; i < m; i++) {
				input = reader.readLine();
				array = input.split(" ");
				for (int j = 0; j < l; j++) {
					b[i][j] = Long.parseLong(array[j]);
				}
			}
			long[][] c = new long[n][l];
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					for (int k = 0; k < m; k++) {
						c[i][j] += a[i][k] * b[k][j];
					}
					System.out.print(c[i][j]);
					if (j != (l - 1)) {
						System.out.print(" ");
					}
					
				}
				System.out.println();
			}
			
		} BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) String input = reader.readLine(); input reader.readLine() reader.readLine reader String[] array = input.split(" "); array input.split(" ") input.split input " " int n = Integer.parseInt(array[0]); n Integer.parseInt(array[0]) Integer.parseInt Integer array[0] array 0 int m = Integer.parseInt(array[1]); m Integer.parseInt(array[1]) Integer.parseInt Integer array[1] array 1 int l = Integer.parseInt(array[2]); l Integer.parseInt(array[2]) Integer.parseInt Integer array[2] array 2 long a[][] = new long[n][m]; a new long[n][m] n m for (int i = 0; i < n; i++) {
				input = reader.readLine();
				array = input.split(" ");
				for (int j = 0; j < m; j++) {
					a[i][j] = Long.parseLong(array[j]);
				}
			} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
				input = reader.readLine();
				array = input.split(" ");
				for (int j = 0; j < m; j++) {
					a[i][j] = Long.parseLong(array[j]);
				}
			} {
				input = reader.readLine();
				array = input.split(" ");
				for (int j = 0; j < m; j++) {
					a[i][j] = Long.parseLong(array[j]);
				}
			} input = reader.readLine() input reader.readLine() reader.readLine reader array = input.split(" ") array input.split(" ") input.split input " " for (int j = 0; j < m; j++) {
					a[i][j] = Long.parseLong(array[j]);
				} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
					a[i][j] = Long.parseLong(array[j]);
				} {
					a[i][j] = Long.parseLong(array[j]);
				} a[i][j] = Long.parseLong(array[j]) a[i][j] a[i] a i j Long.parseLong(array[j]) Long.parseLong Long array[j] array j long b[][] = new long[m][l]; b new long[m][l] m l for (int i = 0; i < m; i++) {
				input = reader.readLine();
				array = input.split(" ");
				for (int j = 0; j < l; j++) {
					b[i][j] = Long.parseLong(array[j]);
				}
			} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
				input = reader.readLine();
				array = input.split(" ");
				for (int j = 0; j < l; j++) {
					b[i][j] = Long.parseLong(array[j]);
				}
			} {
				input = reader.readLine();
				array = input.split(" ");
				for (int j = 0; j < l; j++) {
					b[i][j] = Long.parseLong(array[j]);
				}
			} input = reader.readLine() input reader.readLine() reader.readLine reader array = input.split(" ") array input.split(" ") input.split input " " for (int j = 0; j < l; j++) {
					b[i][j] = Long.parseLong(array[j]);
				} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
					b[i][j] = Long.parseLong(array[j]);
				} {
					b[i][j] = Long.parseLong(array[j]);
				} b[i][j] = Long.parseLong(array[j]) b[i][j] b[i] b i j Long.parseLong(array[j]) Long.parseLong Long array[j] array j long[][] c = new long[n][l]; c new long[n][l] n l for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					for (int k = 0; k < m; k++) {
						c[i][j] += a[i][k] * b[k][j];
					}
					System.out.print(c[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++) {
					for (int k = 0; k < m; k++) {
						c[i][j] += a[i][k] * b[k][j];
					}
					System.out.print(c[i][j]);
					if (j != (l - 1)) {
						System.out.print(" ");
					}
					
				}
				System.out.println();
			} {
				for (int j = 0; j < l; j++) {
					for (int k = 0; k < m; k++) {
						c[i][j] += a[i][k] * b[k][j];
					}
					System.out.print(c[i][j]);
					if (j != (l - 1)) {
						System.out.print(" ");
					}
					
				}
				System.out.println();
			} for (int j = 0; j < l; j++) {
					for (int k = 0; k < m; k++) {
						c[i][j] += a[i][k] * b[k][j];
					}
					System.out.print(c[i][j]);
					if (j != (l - 1)) {
						System.out.print(" ");
					}
					
				} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
					for (int k = 0; k < m; k++) {
						c[i][j] += a[i][k] * b[k][j];
					}
					System.out.print(c[i][j]);
					if (j != (l - 1)) {
						System.out.print(" ");
					}
					
				} {
					for (int k = 0; k < m; k++) {
						c[i][j] += a[i][k] * b[k][j];
					}
					System.out.print(c[i][j]);
					if (j != (l - 1)) {
						System.out.print(" ");
					}
					
				} for (int k = 0; k < m; k++) {
						c[i][j] += a[i][k] * b[k][j];
					} int k = 0; int k = 0; k 0 k < m k m k++ k++ k {
						c[i][j] += a[i][k] * b[k][j];
					} {
						c[i][j] += a[i][k] * b[k][j];
					} c[i][j] += a[i][k] * b[k][j] c[i][j] c[i] c i j a[i][k] * b[k][j] a[i][k] a[i] a i k b[k][j] b[k] b k j System.out.print(c[i][j]) System.out.print System.out System System.out c[i][j] c[i] c 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 public class Main {
	
	public static void main(String[] args) {
		try {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			String input = reader.readLine();
			String[] array = input.split(" ");
			int n = Integer.parseInt(array[0]);
			int m = Integer.parseInt(array[1]);
			int l = Integer.parseInt(array[2]);

			long a[][] = new long[n][m];
			for (int i = 0; i < n; i++) {
				input = reader.readLine();
				array = input.split(" ");
				for (int j = 0; j < m; j++) {
					a[i][j] = Long.parseLong(array[j]);
				}
			}

			long b[][] = new long[m][l];
			for (int i = 0; i < m; i++) {
				input = reader.readLine();
				array = input.split(" ");
				for (int j = 0; j < l; j++) {
					b[i][j] = Long.parseLong(array[j]);
				}
			}
			long[][] c = new long[n][l];
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					for (int k = 0; k < m; k++) {
						c[i][j] += a[i][k] * b[k][j];
					}
					System.out.print(c[i][j]);
					if (j != (l - 1)) {
						System.out.print(" ");
					}
					
				}
				System.out.println();
			}
			
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} public class Main {
	
	public static void main(String[] args) {
		try {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			String input = reader.readLine();
			String[] array = input.split(" ");
			int n = Integer.parseInt(array[0]);
			int m = Integer.parseInt(array[1]);
			int l = Integer.parseInt(array[2]);

			long a[][] = new long[n][m];
			for (int i = 0; i < n; i++) {
				input = reader.readLine();
				array = input.split(" ");
				for (int j = 0; j < m; j++) {
					a[i][j] = Long.parseLong(array[j]);
				}
			}

			long b[][] = new long[m][l];
			for (int i = 0; i < m; i++) {
				input = reader.readLine();
				array = input.split(" ");
				for (int j = 0; j < l; j++) {
					b[i][j] = Long.parseLong(array[j]);
				}
			}
			long[][] c = new long[n][l];
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					for (int k = 0; k < m; k++) {
						c[i][j] += a[i][k] * b[k][j];
					}
					System.out.print(c[i][j]);
					if (j != (l - 1)) {
						System.out.print(" ");
					}
					
				}
				System.out.println();
			}
			
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	
	public static void main(String[] args) {
		try {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			String input = reader.readLine();
			String[] array = input.split(" ");
			int n = Integer.parseInt(array[0]);
			int m = Integer.parseInt(array[1]);
			int l = Integer.parseInt(array[2]);

			long a[][] = new long[n][m];
			for (int i = 0; i < n; i++) {
				input = reader.readLine();
				array = input.split(" ");
				for (int j = 0; j < m; j++) {
					a[i][j] = Long.parseLong(array[j]);
				}
			}

			long b[][] = new long[m][l];
			for (int i = 0; i < m; i++) {
				input = reader.readLine();
				array = input.split(" ");
				for (int j = 0; j < l; j++) {
					b[i][j] = Long.parseLong(array[j]);
				}
			}
			long[][] c = new long[n][l];
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					for (int k = 0; k < m; k++) {
						c[i][j] += a[i][k] * b[k][j];
					}
					System.out.print(c[i][j]);
					if (j != (l - 1)) {
						System.out.print(" ");
					}
					
				}
				System.out.println();
			}
			
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}