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[] str = br.readLine().split(" ");
		int n = Integer.parseInt(str[0]);
		int m = Integer.parseInt(str[1]);
		int l = Integer.parseInt(str[2]);
		long[][] nm = new long[n][m];
		long[][] calc = new long[n][l];

		for (int i = 0; i < n; i++) {
			str = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				nm[i][j] = Integer.parseInt(str[j]);
			}
		}
		for (int i = 0; i < m; i++) {
			str = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				int ml = Integer.parseInt(str[j]);
				for (int k = 0; k < n; k++) {
					calc[k][j] += nm[k][i] * ml;
				}
			}
		}

		for (int i = 0; i < n; i++) {

			for (int j = 0; j < l; j++) {
				if (j != 0)
					System.out.print(" ");
				System.out.print(calc[i][j]);
			}
			System.out.println();
		}
	}
} 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[] str = br.readLine().split(" ");
		int n = Integer.parseInt(str[0]);
		int m = Integer.parseInt(str[1]);
		int l = Integer.parseInt(str[2]);
		long[][] nm = new long[n][m];
		long[][] calc = new long[n][l];

		for (int i = 0; i < n; i++) {
			str = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				nm[i][j] = Integer.parseInt(str[j]);
			}
		}
		for (int i = 0; i < m; i++) {
			str = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				int ml = Integer.parseInt(str[j]);
				for (int k = 0; k < n; k++) {
					calc[k][j] += nm[k][i] * ml;
				}
			}
		}

		for (int i = 0; i < n; i++) {

			for (int j = 0; j < l; j++) {
				if (j != 0)
					System.out.print(" ");
				System.out.print(calc[i][j]);
			}
			System.out.println();
		}
	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String[] str = br.readLine().split(" ");
		int n = Integer.parseInt(str[0]);
		int m = Integer.parseInt(str[1]);
		int l = Integer.parseInt(str[2]);
		long[][] nm = new long[n][m];
		long[][] calc = new long[n][l];

		for (int i = 0; i < n; i++) {
			str = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				nm[i][j] = Integer.parseInt(str[j]);
			}
		}
		for (int i = 0; i < m; i++) {
			str = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				int ml = Integer.parseInt(str[j]);
				for (int k = 0; k < n; k++) {
					calc[k][j] += nm[k][i] * ml;
				}
			}
		}

		for (int i = 0; i < n; i++) {

			for (int j = 0; j < l; j++) {
				if (j != 0)
					System.out.print(" ");
				System.out.print(calc[i][j]);
			}
			System.out.println();
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String[] str = br.readLine().split(" ");
		int n = Integer.parseInt(str[0]);
		int m = Integer.parseInt(str[1]);
		int l = Integer.parseInt(str[2]);
		long[][] nm = new long[n][m];
		long[][] calc = new long[n][l];

		for (int i = 0; i < n; i++) {
			str = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				nm[i][j] = Integer.parseInt(str[j]);
			}
		}
		for (int i = 0; i < m; i++) {
			str = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				int ml = Integer.parseInt(str[j]);
				for (int k = 0; k < n; k++) {
					calc[k][j] += nm[k][i] * ml;
				}
			}
		}

		for (int i = 0; i < n; i++) {

			for (int j = 0; j < l; j++) {
				if (j != 0)
					System.out.print(" ");
				System.out.print(calc[i][j]);
			}
			System.out.println();
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] str = br.readLine().split(" "); str br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int n = Integer.parseInt(str[0]); n Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 int m = Integer.parseInt(str[1]); m Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 int l = Integer.parseInt(str[2]); l Integer.parseInt(str[2]) Integer.parseInt Integer str[2] str 2 long[][] nm = new long[n][m]; nm new long[n][m] n m long[][] calc = new long[n][l]; calc new long[n][l] n l for (int i = 0; i < n; i++) {
			str = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				nm[i][j] = Integer.parseInt(str[j]);
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			str = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				nm[i][j] = Integer.parseInt(str[j]);
			}
		} {
			str = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				nm[i][j] = Integer.parseInt(str[j]);
			}
		} str = br.readLine().split(" ") str br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " for (int j = 0; j < m; j++) {
				nm[i][j] = Integer.parseInt(str[j]);
			} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
				nm[i][j] = Integer.parseInt(str[j]);
			} {
				nm[i][j] = Integer.parseInt(str[j]);
			} nm[i][j] = Integer.parseInt(str[j]) nm[i][j] nm[i] nm i j Integer.parseInt(str[j]) Integer.parseInt Integer str[j] str j for (int i = 0; i < m; i++) {
			str = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				int ml = Integer.parseInt(str[j]);
				for (int k = 0; k < n; k++) {
					calc[k][j] += nm[k][i] * ml;
				}
			}
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
			str = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				int ml = Integer.parseInt(str[j]);
				for (int k = 0; k < n; k++) {
					calc[k][j] += nm[k][i] * ml;
				}
			}
		} {
			str = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				int ml = Integer.parseInt(str[j]);
				for (int k = 0; k < n; k++) {
					calc[k][j] += nm[k][i] * ml;
				}
			}
		} str = br.readLine().split(" ") str br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " for (int j = 0; j < l; j++) {
				int ml = Integer.parseInt(str[j]);
				for (int k = 0; k < n; k++) {
					calc[k][j] += nm[k][i] * ml;
				}
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				int ml = Integer.parseInt(str[j]);
				for (int k = 0; k < n; k++) {
					calc[k][j] += nm[k][i] * ml;
				}
			} {
				int ml = Integer.parseInt(str[j]);
				for (int k = 0; k < n; k++) {
					calc[k][j] += nm[k][i] * ml;
				}
			} int ml = Integer.parseInt(str[j]); ml Integer.parseInt(str[j]) Integer.parseInt Integer str[j] str j for (int k = 0; k < n; k++) {
					calc[k][j] += nm[k][i] * ml;
				} int k = 0; int k = 0; k 0 k < n k n k++ k++ k {
					calc[k][j] += nm[k][i] * ml;
				} {
					calc[k][j] += nm[k][i] * ml;
				} calc[k][j] += nm[k][i] * ml calc[k][j] calc[k] calc k j nm[k][i] * ml nm[k][i] nm[k] nm k i ml for (int i = 0; i < n; i++) {

			for (int j = 0; j < l; j++) {
				if (j != 0)
					System.out.print(" ");
				System.out.print(calc[i][j]);
			}
			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++) {
				if (j != 0)
					System.out.print(" ");
				System.out.print(calc[i][j]);
			}
			System.out.println();
		} {

			for (int j = 0; j < l; j++) {
				if (j != 0)
					System.out.print(" ");
				System.out.print(calc[i][j]);
			}
			System.out.println();
		} for (int j = 0; j < l; j++) {
				if (j != 0)
					System.out.print(" ");
				System.out.print(calc[i][j]);
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				if (j != 0)
					System.out.print(" ");
				System.out.print(calc[i][j]);
			} {
				if (j != 0)
					System.out.print(" ");
				System.out.print(calc[i][j]);
			} if (j != 0)
					System.out.print(" "); j != 0 j 0 System.out.print(" ") System.out.print System.out System System.out " " System.out.print(calc[i][j]) System.out.print System.out System System.out calc[i][j] calc[i] calc i j System.out.println() System.out.println System.out System System.out String[] args args public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String[] str = br.readLine().split(" ");
		int n = Integer.parseInt(str[0]);
		int m = Integer.parseInt(str[1]);
		int l = Integer.parseInt(str[2]);
		long[][] nm = new long[n][m];
		long[][] calc = new long[n][l];

		for (int i = 0; i < n; i++) {
			str = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				nm[i][j] = Integer.parseInt(str[j]);
			}
		}
		for (int i = 0; i < m; i++) {
			str = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				int ml = Integer.parseInt(str[j]);
				for (int k = 0; k < n; k++) {
					calc[k][j] += nm[k][i] * ml;
				}
			}
		}

		for (int i = 0; i < n; i++) {

			for (int j = 0; j < l; j++) {
				if (j != 0)
					System.out.print(" ");
				System.out.print(calc[i][j]);
			}
			System.out.println();
		}
	}
} public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String[] str = br.readLine().split(" ");
		int n = Integer.parseInt(str[0]);
		int m = Integer.parseInt(str[1]);
		int l = Integer.parseInt(str[2]);
		long[][] nm = new long[n][m];
		long[][] calc = new long[n][l];

		for (int i = 0; i < n; i++) {
			str = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				nm[i][j] = Integer.parseInt(str[j]);
			}
		}
		for (int i = 0; i < m; i++) {
			str = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				int ml = Integer.parseInt(str[j]);
				for (int k = 0; k < n; k++) {
					calc[k][j] += nm[k][i] * ml;
				}
			}
		}

		for (int i = 0; i < n; i++) {

			for (int j = 0; j < l; j++) {
				if (j != 0)
					System.out.print(" ");
				System.out.print(calc[i][j]);
			}
			System.out.println();
		}
	}
} 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[] str = br.readLine().split(" ");
		int n = Integer.parseInt(str[0]);
		int m = Integer.parseInt(str[1]);
		int l = Integer.parseInt(str[2]);
		long[][] nm = new long[n][m];
		long[][] calc = new long[n][l];

		for (int i = 0; i < n; i++) {
			str = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				nm[i][j] = Integer.parseInt(str[j]);
			}
		}
		for (int i = 0; i < m; i++) {
			str = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				int ml = Integer.parseInt(str[j]);
				for (int k = 0; k < n; k++) {
					calc[k][j] += nm[k][i] * ml;
				}
			}
		}

		for (int i = 0; i < n; i++) {

			for (int j = 0; j < l; j++) {
				if (j != 0)
					System.out.print(" ");
				System.out.print(calc[i][j]);
			}
			System.out.println();
		}
	}
}