import java.util.Scanner;
import java.util.StringJoiner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int m = sc.nextInt();
		int l = sc.nextInt();

		int[][] gA = new int[n][m];
		int[][] gB = new int[m][l];

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				gA[i][j] = sc.nextInt();
			}
		}

		for (int i = 0; i < m; i++) {
			for (int j = 0; j < l; j++) {
				gB[i][j] = sc.nextInt();
			}
		}
		sc.close();

		long[][] gC = new long[n][l];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {

				long val = 0;
				for (int k = 0; k < m; k++) {
					val += gA[i][k] * gB[k][j];
				}
				gC[i][j] = val;
			}
		}

		for(long[] c : gC) {
			StringJoiner sj = new StringJoiner(" ");
			for(long val : c) {
				sj.add(String.valueOf(val));
			}
			System.out.println(sj);
		}
	}
} import java.util.Scanner; Scanner java.util import java.util.StringJoiner; StringJoiner java.util public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int m = sc.nextInt();
		int l = sc.nextInt();

		int[][] gA = new int[n][m];
		int[][] gB = new int[m][l];

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				gA[i][j] = sc.nextInt();
			}
		}

		for (int i = 0; i < m; i++) {
			for (int j = 0; j < l; j++) {
				gB[i][j] = sc.nextInt();
			}
		}
		sc.close();

		long[][] gC = new long[n][l];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {

				long val = 0;
				for (int k = 0; k < m; k++) {
					val += gA[i][k] * gB[k][j];
				}
				gC[i][j] = val;
			}
		}

		for(long[] c : gC) {
			StringJoiner sj = new StringJoiner(" ");
			for(long val : c) {
				sj.add(String.valueOf(val));
			}
			System.out.println(sj);
		}
	}
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int m = sc.nextInt();
		int l = sc.nextInt();

		int[][] gA = new int[n][m];
		int[][] gB = new int[m][l];

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				gA[i][j] = sc.nextInt();
			}
		}

		for (int i = 0; i < m; i++) {
			for (int j = 0; j < l; j++) {
				gB[i][j] = sc.nextInt();
			}
		}
		sc.close();

		long[][] gC = new long[n][l];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {

				long val = 0;
				for (int k = 0; k < m; k++) {
					val += gA[i][k] * gB[k][j];
				}
				gC[i][j] = val;
			}
		}

		for(long[] c : gC) {
			StringJoiner sj = new StringJoiner(" ");
			for(long val : c) {
				sj.add(String.valueOf(val));
			}
			System.out.println(sj);
		}
	} main {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int m = sc.nextInt();
		int l = sc.nextInt();

		int[][] gA = new int[n][m];
		int[][] gB = new int[m][l];

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				gA[i][j] = sc.nextInt();
			}
		}

		for (int i = 0; i < m; i++) {
			for (int j = 0; j < l; j++) {
				gB[i][j] = sc.nextInt();
			}
		}
		sc.close();

		long[][] gC = new long[n][l];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {

				long val = 0;
				for (int k = 0; k < m; k++) {
					val += gA[i][k] * gB[k][j];
				}
				gC[i][j] = val;
			}
		}

		for(long[] c : gC) {
			StringJoiner sj = new StringJoiner(" ");
			for(long val : c) {
				sj.add(String.valueOf(val));
			}
			System.out.println(sj);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int m = sc.nextInt(); m sc.nextInt() sc.nextInt sc int l = sc.nextInt(); l sc.nextInt() sc.nextInt sc int[][] gA = new int[n][m]; gA new int[n][m] n m int[][] gB = new int[m][l]; gB new int[m][l] m l for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				gA[i][j] = sc.nextInt();
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			for (int j = 0; j < m; j++) {
				gA[i][j] = sc.nextInt();
			}
		} {
			for (int j = 0; j < m; j++) {
				gA[i][j] = sc.nextInt();
			}
		} for (int j = 0; j < m; j++) {
				gA[i][j] = sc.nextInt();
			} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
				gA[i][j] = sc.nextInt();
			} {
				gA[i][j] = sc.nextInt();
			} gA[i][j] = sc.nextInt() gA[i][j] gA[i] gA i j sc.nextInt() sc.nextInt sc for (int i = 0; i < m; i++) {
			for (int j = 0; j < l; j++) {
				gB[i][j] = sc.nextInt();
			}
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
			for (int j = 0; j < l; j++) {
				gB[i][j] = sc.nextInt();
			}
		} {
			for (int j = 0; j < l; j++) {
				gB[i][j] = sc.nextInt();
			}
		} for (int j = 0; j < l; j++) {
				gB[i][j] = sc.nextInt();
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				gB[i][j] = sc.nextInt();
			} {
				gB[i][j] = sc.nextInt();
			} gB[i][j] = sc.nextInt() gB[i][j] gB[i] gB i j sc.nextInt() sc.nextInt sc sc.close() sc.close sc long[][] gC = new long[n][l]; gC new long[n][l] n l for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {

				long val = 0;
				for (int k = 0; k < m; k++) {
					val += gA[i][k] * gB[k][j];
				}
				gC[i][j] = val;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			for (int j = 0; j < l; j++) {

				long val = 0;
				for (int k = 0; k < m; k++) {
					val += gA[i][k] * gB[k][j];
				}
				gC[i][j] = val;
			}
		} {
			for (int j = 0; j < l; j++) {

				long val = 0;
				for (int k = 0; k < m; k++) {
					val += gA[i][k] * gB[k][j];
				}
				gC[i][j] = val;
			}
		} for (int j = 0; j < l; j++) {

				long val = 0;
				for (int k = 0; k < m; k++) {
					val += gA[i][k] * gB[k][j];
				}
				gC[i][j] = val;
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {

				long val = 0;
				for (int k = 0; k < m; k++) {
					val += gA[i][k] * gB[k][j];
				}
				gC[i][j] = val;
			} {

				long val = 0;
				for (int k = 0; k < m; k++) {
					val += gA[i][k] * gB[k][j];
				}
				gC[i][j] = val;
			} long val = 0; val 0 for (int k = 0; k < m; k++) {
					val += gA[i][k] * gB[k][j];
				} int k = 0; int k = 0; k 0 k < m k m k++ k++ k {
					val += gA[i][k] * gB[k][j];
				} {
					val += gA[i][k] * gB[k][j];
				} val += gA[i][k] * gB[k][j] val gA[i][k] * gB[k][j] gA[i][k] gA[i] gA i k gB[k][j] gB[k] gB k j gC[i][j] = val gC[i][j] gC[i] gC i j val for(long[] c : gC) {
			StringJoiner sj = new StringJoiner(" ");
			for(long val : c) {
				sj.add(String.valueOf(val));
			}
			System.out.println(sj);
		} long[] c gC {
			StringJoiner sj = new StringJoiner(" ");
			for(long val : c) {
				sj.add(String.valueOf(val));
			}
			System.out.println(sj);
		} {
			StringJoiner sj = new StringJoiner(" ");
			for(long val : c) {
				sj.add(String.valueOf(val));
			}
			System.out.println(sj);
		} StringJoiner sj = new StringJoiner(" "); sj new StringJoiner(" ") for(long val : c) {
				sj.add(String.valueOf(val));
			} long val c {
				sj.add(String.valueOf(val));
			} {
				sj.add(String.valueOf(val));
			} sj.add(String.valueOf(val)) sj.add sj String.valueOf(val) String.valueOf String val System.out.println(sj) System.out.println System.out System System.out sj String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int m = sc.nextInt();
		int l = sc.nextInt();

		int[][] gA = new int[n][m];
		int[][] gB = new int[m][l];

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				gA[i][j] = sc.nextInt();
			}
		}

		for (int i = 0; i < m; i++) {
			for (int j = 0; j < l; j++) {
				gB[i][j] = sc.nextInt();
			}
		}
		sc.close();

		long[][] gC = new long[n][l];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {

				long val = 0;
				for (int k = 0; k < m; k++) {
					val += gA[i][k] * gB[k][j];
				}
				gC[i][j] = val;
			}
		}

		for(long[] c : gC) {
			StringJoiner sj = new StringJoiner(" ");
			for(long val : c) {
				sj.add(String.valueOf(val));
			}
			System.out.println(sj);
		}
	}
} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int m = sc.nextInt();
		int l = sc.nextInt();

		int[][] gA = new int[n][m];
		int[][] gB = new int[m][l];

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				gA[i][j] = sc.nextInt();
			}
		}

		for (int i = 0; i < m; i++) {
			for (int j = 0; j < l; j++) {
				gB[i][j] = sc.nextInt();
			}
		}
		sc.close();

		long[][] gC = new long[n][l];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {

				long val = 0;
				for (int k = 0; k < m; k++) {
					val += gA[i][k] * gB[k][j];
				}
				gC[i][j] = val;
			}
		}

		for(long[] c : gC) {
			StringJoiner sj = new StringJoiner(" ");
			for(long val : c) {
				sj.add(String.valueOf(val));
			}
			System.out.println(sj);
		}
	}
} Main
import java.util.Scanner;
import java.util.StringJoiner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int m = sc.nextInt();
		int l = sc.nextInt();

		int[][] gA = new int[n][m];
		int[][] gB = new int[m][l];

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				gA[i][j] = sc.nextInt();
			}
		}

		for (int i = 0; i < m; i++) {
			for (int j = 0; j < l; j++) {
				gB[i][j] = sc.nextInt();
			}
		}
		sc.close();

		long[][] gC = new long[n][l];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {

				long val = 0;
				for (int k = 0; k < m; k++) {
					val += gA[i][k] * gB[k][j];
				}
				gC[i][j] = val;
			}
		}

		for(long[] c : gC) {
			StringJoiner sj = new StringJoiner(" ");
			for(long val : c) {
				sj.add(String.valueOf(val));
			}
			System.out.println(sj);
		}
	}
}