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

		for (int i = 0; i < n; i++) {
			input = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				a[i][j] = Integer.parseInt(input[j]);
			}
		}
		for (int i = 0; i < m; i++) {
			input = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				b[i][j] = Integer.parseInt(input[j]);
			}
		}

		StringBuffer sb = new StringBuffer();
		String space = " ";
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				long sum = 0;
				for (int k = 0; k < m; k++) {
					sum += a[i][k] * b[k][j];
				}
				if (j != l -1) {
					sb.append(sum + space);
				} else {
					sb.append(sum + "\n");
				}
			}
		}
		System.out.print(sb.toString());
	}
} 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[] input = br.readLine().split(" ");
		int n = Integer.parseInt(input[0]);
		int m = Integer.parseInt(input[1]);
		int l = Integer.parseInt(input[2]);
		long[][] a = new long[n][m];
		long[][] b = new long[m][l];

		for (int i = 0; i < n; i++) {
			input = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				a[i][j] = Integer.parseInt(input[j]);
			}
		}
		for (int i = 0; i < m; i++) {
			input = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				b[i][j] = Integer.parseInt(input[j]);
			}
		}

		StringBuffer sb = new StringBuffer();
		String space = " ";
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				long sum = 0;
				for (int k = 0; k < m; k++) {
					sum += a[i][k] * b[k][j];
				}
				if (j != l -1) {
					sb.append(sum + space);
				} else {
					sb.append(sum + "\n");
				}
			}
		}
		System.out.print(sb.toString());
	}
} Main public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String[] input = br.readLine().split(" ");
		int n = Integer.parseInt(input[0]);
		int m = Integer.parseInt(input[1]);
		int l = Integer.parseInt(input[2]);
		long[][] a = new long[n][m];
		long[][] b = new long[m][l];

		for (int i = 0; i < n; i++) {
			input = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				a[i][j] = Integer.parseInt(input[j]);
			}
		}
		for (int i = 0; i < m; i++) {
			input = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				b[i][j] = Integer.parseInt(input[j]);
			}
		}

		StringBuffer sb = new StringBuffer();
		String space = " ";
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				long sum = 0;
				for (int k = 0; k < m; k++) {
					sum += a[i][k] * b[k][j];
				}
				if (j != l -1) {
					sb.append(sum + space);
				} else {
					sb.append(sum + "\n");
				}
			}
		}
		System.out.print(sb.toString());
	} main {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String[] input = br.readLine().split(" ");
		int n = Integer.parseInt(input[0]);
		int m = Integer.parseInt(input[1]);
		int l = Integer.parseInt(input[2]);
		long[][] a = new long[n][m];
		long[][] b = new long[m][l];

		for (int i = 0; i < n; i++) {
			input = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				a[i][j] = Integer.parseInt(input[j]);
			}
		}
		for (int i = 0; i < m; i++) {
			input = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				b[i][j] = Integer.parseInt(input[j]);
			}
		}

		StringBuffer sb = new StringBuffer();
		String space = " ";
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				long sum = 0;
				for (int k = 0; k < m; k++) {
					sum += a[i][k] * b[k][j];
				}
				if (j != l -1) {
					sb.append(sum + space);
				} else {
					sb.append(sum + "\n");
				}
			}
		}
		System.out.print(sb.toString());
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] input = br.readLine().split(" "); input br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int n = Integer.parseInt(input[0]); n Integer.parseInt(input[0]) Integer.parseInt Integer input[0] input 0 int m = Integer.parseInt(input[1]); m Integer.parseInt(input[1]) Integer.parseInt Integer input[1] input 1 int l = Integer.parseInt(input[2]); l Integer.parseInt(input[2]) Integer.parseInt Integer input[2] input 2 long[][] a = new long[n][m]; a new long[n][m] n m long[][] b = new long[m][l]; b new long[m][l] m l for (int i = 0; i < n; i++) {
			input = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				a[i][j] = Integer.parseInt(input[j]);
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			input = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				a[i][j] = Integer.parseInt(input[j]);
			}
		} {
			input = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				a[i][j] = Integer.parseInt(input[j]);
			}
		} input = br.readLine().split(" ") input br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " for (int j = 0; j < m; j++) {
				a[i][j] = Integer.parseInt(input[j]);
			} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
				a[i][j] = Integer.parseInt(input[j]);
			} {
				a[i][j] = Integer.parseInt(input[j]);
			} a[i][j] = Integer.parseInt(input[j]) a[i][j] a[i] a i j Integer.parseInt(input[j]) Integer.parseInt Integer input[j] input j for (int i = 0; i < m; i++) {
			input = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				b[i][j] = Integer.parseInt(input[j]);
			}
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
			input = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				b[i][j] = Integer.parseInt(input[j]);
			}
		} {
			input = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				b[i][j] = Integer.parseInt(input[j]);
			}
		} input = br.readLine().split(" ") input br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " for (int j = 0; j < l; j++) {
				b[i][j] = Integer.parseInt(input[j]);
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				b[i][j] = Integer.parseInt(input[j]);
			} {
				b[i][j] = Integer.parseInt(input[j]);
			} b[i][j] = Integer.parseInt(input[j]) b[i][j] b[i] b i j Integer.parseInt(input[j]) Integer.parseInt Integer input[j] input j StringBuffer sb = new StringBuffer(); sb new StringBuffer() String space = " "; space " " for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				long sum = 0;
				for (int k = 0; k < m; k++) {
					sum += a[i][k] * b[k][j];
				}
				if (j != l -1) {
					sb.append(sum + space);
				} else {
					sb.append(sum + "\n");
				}
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			for (int j = 0; j < l; j++) {
				long sum = 0;
				for (int k = 0; k < m; k++) {
					sum += a[i][k] * b[k][j];
				}
				if (j != l -1) {
					sb.append(sum + space);
				} else {
					sb.append(sum + "\n");
				}
			}
		} {
			for (int j = 0; j < l; j++) {
				long sum = 0;
				for (int k = 0; k < m; k++) {
					sum += a[i][k] * b[k][j];
				}
				if (j != l -1) {
					sb.append(sum + space);
				} else {
					sb.append(sum + "\n");
				}
			}
		} for (int j = 0; j < l; j++) {
				long sum = 0;
				for (int k = 0; k < m; k++) {
					sum += a[i][k] * b[k][j];
				}
				if (j != l -1) {
					sb.append(sum + space);
				} else {
					sb.append(sum + "\n");
				}
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				long sum = 0;
				for (int k = 0; k < m; k++) {
					sum += a[i][k] * b[k][j];
				}
				if (j != l -1) {
					sb.append(sum + space);
				} else {
					sb.append(sum + "\n");
				}
			} {
				long sum = 0;
				for (int k = 0; k < m; k++) {
					sum += a[i][k] * b[k][j];
				}
				if (j != l -1) {
					sb.append(sum + space);
				} else {
					sb.append(sum + "\n");
				}
			} long sum = 0; sum 0 for (int k = 0; k < m; k++) {
					sum += a[i][k] * b[k][j];
				} int k = 0; int k = 0; k 0 k < m k m k++ k++ k {
					sum += a[i][k] * b[k][j];
				} {
					sum += a[i][k] * b[k][j];
				} sum += a[i][k] * b[k][j] sum a[i][k] * b[k][j] a[i][k] a[i] a i k b[k][j] b[k] b k j if (j != l -1) {
					sb.append(sum + space);
				} else {
					sb.append(sum + "\n");
				} j != l -1 j l -1 l 1 {
					sb.append(sum + space);
				} sb.append(sum + space) sb.append sb sum + space sum space {
					sb.append(sum + "\n");
				} sb.append(sum + "\n") sb.append sb sum + "\n" sum "\n" System.out.print(sb.toString()) System.out.print System.out System System.out sb.toString() sb.toString sb String[] args args public class Main {

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

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String[] input = br.readLine().split(" ");
		int n = Integer.parseInt(input[0]);
		int m = Integer.parseInt(input[1]);
		int l = Integer.parseInt(input[2]);
		long[][] a = new long[n][m];
		long[][] b = new long[m][l];

		for (int i = 0; i < n; i++) {
			input = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				a[i][j] = Integer.parseInt(input[j]);
			}
		}
		for (int i = 0; i < m; i++) {
			input = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				b[i][j] = Integer.parseInt(input[j]);
			}
		}

		StringBuffer sb = new StringBuffer();
		String space = " ";
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				long sum = 0;
				for (int k = 0; k < m; k++) {
					sum += a[i][k] * b[k][j];
				}
				if (j != l -1) {
					sb.append(sum + space);
				} else {
					sb.append(sum + "\n");
				}
			}
		}
		System.out.print(sb.toString());
	}
} public class Main {

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

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String[] input = br.readLine().split(" ");
		int n = Integer.parseInt(input[0]);
		int m = Integer.parseInt(input[1]);
		int l = Integer.parseInt(input[2]);
		long[][] a = new long[n][m];
		long[][] b = new long[m][l];

		for (int i = 0; i < n; i++) {
			input = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				a[i][j] = Integer.parseInt(input[j]);
			}
		}
		for (int i = 0; i < m; i++) {
			input = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				b[i][j] = Integer.parseInt(input[j]);
			}
		}

		StringBuffer sb = new StringBuffer();
		String space = " ";
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				long sum = 0;
				for (int k = 0; k < m; k++) {
					sum += a[i][k] * b[k][j];
				}
				if (j != l -1) {
					sb.append(sum + space);
				} else {
					sb.append(sum + "\n");
				}
			}
		}
		System.out.print(sb.toString());
	}
} 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[] input = br.readLine().split(" ");
		int n = Integer.parseInt(input[0]);
		int m = Integer.parseInt(input[1]);
		int l = Integer.parseInt(input[2]);
		long[][] a = new long[n][m];
		long[][] b = new long[m][l];

		for (int i = 0; i < n; i++) {
			input = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				a[i][j] = Integer.parseInt(input[j]);
			}
		}
		for (int i = 0; i < m; i++) {
			input = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				b[i][j] = Integer.parseInt(input[j]);
			}
		}

		StringBuffer sb = new StringBuffer();
		String space = " ";
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				long sum = 0;
				for (int k = 0; k < m; k++) {
					sum += a[i][k] * b[k][j];
				}
				if (j != l -1) {
					sb.append(sum + space);
				} else {
					sb.append(sum + "\n");
				}
			}
		}
		System.out.print(sb.toString());
	}
}