import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		int numN;
		int numM;
		int numL;

		long[][] boxA;
		long[][] boxB;
		long[][] boxAnser;

		String outPut = "";

		Scanner sc = null;

		try {
			sc = new Scanner(System.in);

			//1???????????\???
			numN = sc.nextInt();
			numM = sc.nextInt();
			numL = sc.nextInt();

			boxA = new long[numN][numM];
			boxB = new long[numM][numL];
			boxAnser = new long[numN][numL];

			//???????????????

			//??????A?????????
			for (int i = 0; i < boxA.length; i++) {
				for (int j = 0; j < boxA[0].length; j++) {
					boxA[i][j] = sc.nextInt();
				}
			}
			//??????B?????????
			for (int i = 0; i < boxB.length; i++) {
				for (int j = 0; j < boxB[0].length; j++) {
					boxB[i][j] = sc.nextInt();
				}
			}
			//??????????£???§?¨????
			for (int i = 0; i < boxAnser.length; i++) {
				for (int j = 0; j < boxAnser[0].length; j++) {
					for (int k = 0; k < numM; k++) {

						boxAnser[i][j] += boxA[i][k] * boxB[k][j];
					}
				}
			}

			//???????????????
			for (int i = 0; i < boxAnser.length; i++) {
				for (int j = 0; j < boxAnser[0].length; j++) {
					if (!outPut.equals("")) {
						outPut += " ";
					}
					outPut += boxAnser[i][j];
				}
				System.out.println(outPut);
				outPut = "";
			}
		} finally {
			sc.close();
		}
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		int numN;
		int numM;
		int numL;

		long[][] boxA;
		long[][] boxB;
		long[][] boxAnser;

		String outPut = "";

		Scanner sc = null;

		try {
			sc = new Scanner(System.in);

			//1???????????\???
			numN = sc.nextInt();
			numM = sc.nextInt();
			numL = sc.nextInt();

			boxA = new long[numN][numM];
			boxB = new long[numM][numL];
			boxAnser = new long[numN][numL];

			//???????????????

			//??????A?????????
			for (int i = 0; i < boxA.length; i++) {
				for (int j = 0; j < boxA[0].length; j++) {
					boxA[i][j] = sc.nextInt();
				}
			}
			//??????B?????????
			for (int i = 0; i < boxB.length; i++) {
				for (int j = 0; j < boxB[0].length; j++) {
					boxB[i][j] = sc.nextInt();
				}
			}
			//??????????£???§?¨????
			for (int i = 0; i < boxAnser.length; i++) {
				for (int j = 0; j < boxAnser[0].length; j++) {
					for (int k = 0; k < numM; k++) {

						boxAnser[i][j] += boxA[i][k] * boxB[k][j];
					}
				}
			}

			//???????????????
			for (int i = 0; i < boxAnser.length; i++) {
				for (int j = 0; j < boxAnser[0].length; j++) {
					if (!outPut.equals("")) {
						outPut += " ";
					}
					outPut += boxAnser[i][j];
				}
				System.out.println(outPut);
				outPut = "";
			}
		} finally {
			sc.close();
		}
	}

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

		int numN;
		int numM;
		int numL;

		long[][] boxA;
		long[][] boxB;
		long[][] boxAnser;

		String outPut = "";

		Scanner sc = null;

		try {
			sc = new Scanner(System.in);

			//1???????????\???
			numN = sc.nextInt();
			numM = sc.nextInt();
			numL = sc.nextInt();

			boxA = new long[numN][numM];
			boxB = new long[numM][numL];
			boxAnser = new long[numN][numL];

			//???????????????

			//??????A?????????
			for (int i = 0; i < boxA.length; i++) {
				for (int j = 0; j < boxA[0].length; j++) {
					boxA[i][j] = sc.nextInt();
				}
			}
			//??????B?????????
			for (int i = 0; i < boxB.length; i++) {
				for (int j = 0; j < boxB[0].length; j++) {
					boxB[i][j] = sc.nextInt();
				}
			}
			//??????????£???§?¨????
			for (int i = 0; i < boxAnser.length; i++) {
				for (int j = 0; j < boxAnser[0].length; j++) {
					for (int k = 0; k < numM; k++) {

						boxAnser[i][j] += boxA[i][k] * boxB[k][j];
					}
				}
			}

			//???????????????
			for (int i = 0; i < boxAnser.length; i++) {
				for (int j = 0; j < boxAnser[0].length; j++) {
					if (!outPut.equals("")) {
						outPut += " ";
					}
					outPut += boxAnser[i][j];
				}
				System.out.println(outPut);
				outPut = "";
			}
		} finally {
			sc.close();
		}
	} main {

		int numN;
		int numM;
		int numL;

		long[][] boxA;
		long[][] boxB;
		long[][] boxAnser;

		String outPut = "";

		Scanner sc = null;

		try {
			sc = new Scanner(System.in);

			//1???????????\???
			numN = sc.nextInt();
			numM = sc.nextInt();
			numL = sc.nextInt();

			boxA = new long[numN][numM];
			boxB = new long[numM][numL];
			boxAnser = new long[numN][numL];

			//???????????????

			//??????A?????????
			for (int i = 0; i < boxA.length; i++) {
				for (int j = 0; j < boxA[0].length; j++) {
					boxA[i][j] = sc.nextInt();
				}
			}
			//??????B?????????
			for (int i = 0; i < boxB.length; i++) {
				for (int j = 0; j < boxB[0].length; j++) {
					boxB[i][j] = sc.nextInt();
				}
			}
			//??????????£???§?¨????
			for (int i = 0; i < boxAnser.length; i++) {
				for (int j = 0; j < boxAnser[0].length; j++) {
					for (int k = 0; k < numM; k++) {

						boxAnser[i][j] += boxA[i][k] * boxB[k][j];
					}
				}
			}

			//???????????????
			for (int i = 0; i < boxAnser.length; i++) {
				for (int j = 0; j < boxAnser[0].length; j++) {
					if (!outPut.equals("")) {
						outPut += " ";
					}
					outPut += boxAnser[i][j];
				}
				System.out.println(outPut);
				outPut = "";
			}
		} finally {
			sc.close();
		}
	} int numN; numN int numM; numM int numL; numL long[][] boxA; boxA long[][] boxB; boxB long[][] boxAnser; boxAnser String outPut = ""; outPut "" Scanner sc = null; sc null try {
			sc = new Scanner(System.in);

			//1???????????\???
			numN = sc.nextInt();
			numM = sc.nextInt();
			numL = sc.nextInt();

			boxA = new long[numN][numM];
			boxB = new long[numM][numL];
			boxAnser = new long[numN][numL];

			//???????????????

			//??????A?????????
			for (int i = 0; i < boxA.length; i++) {
				for (int j = 0; j < boxA[0].length; j++) {
					boxA[i][j] = sc.nextInt();
				}
			}
			//??????B?????????
			for (int i = 0; i < boxB.length; i++) {
				for (int j = 0; j < boxB[0].length; j++) {
					boxB[i][j] = sc.nextInt();
				}
			}
			//??????????£???§?¨????
			for (int i = 0; i < boxAnser.length; i++) {
				for (int j = 0; j < boxAnser[0].length; j++) {
					for (int k = 0; k < numM; k++) {

						boxAnser[i][j] += boxA[i][k] * boxB[k][j];
					}
				}
			}

			//???????????????
			for (int i = 0; i < boxAnser.length; i++) {
				for (int j = 0; j < boxAnser[0].length; j++) {
					if (!outPut.equals("")) {
						outPut += " ";
					}
					outPut += boxAnser[i][j];
				}
				System.out.println(outPut);
				outPut = "";
			}
		} finally {
			sc.close();
		} {
			sc.close();
		} sc.close() sc.close sc {
			sc = new Scanner(System.in);

			//1???????????\???
			numN = sc.nextInt();
			numM = sc.nextInt();
			numL = sc.nextInt();

			boxA = new long[numN][numM];
			boxB = new long[numM][numL];
			boxAnser = new long[numN][numL];

			//???????????????

			//??????A?????????
			for (int i = 0; i < boxA.length; i++) {
				for (int j = 0; j < boxA[0].length; j++) {
					boxA[i][j] = sc.nextInt();
				}
			}
			//??????B?????????
			for (int i = 0; i < boxB.length; i++) {
				for (int j = 0; j < boxB[0].length; j++) {
					boxB[i][j] = sc.nextInt();
				}
			}
			//??????????£???§?¨????
			for (int i = 0; i < boxAnser.length; i++) {
				for (int j = 0; j < boxAnser[0].length; j++) {
					for (int k = 0; k < numM; k++) {

						boxAnser[i][j] += boxA[i][k] * boxB[k][j];
					}
				}
			}

			//???????????????
			for (int i = 0; i < boxAnser.length; i++) {
				for (int j = 0; j < boxAnser[0].length; j++) {
					if (!outPut.equals("")) {
						outPut += " ";
					}
					outPut += boxAnser[i][j];
				}
				System.out.println(outPut);
				outPut = "";
			}
		} sc = new Scanner(System.in) sc new Scanner(System.in) numN = sc.nextInt() numN sc.nextInt() sc.nextInt sc numM = sc.nextInt() numM sc.nextInt() sc.nextInt sc numL = sc.nextInt() numL sc.nextInt() sc.nextInt sc boxA = new long[numN][numM] boxA new long[numN][numM] numN numM boxB = new long[numM][numL] boxB new long[numM][numL] numM numL boxAnser = new long[numN][numL] boxAnser new long[numN][numL] numN numL for (int i = 0; i < boxA.length; i++) {
				for (int j = 0; j < boxA[0].length; j++) {
					boxA[i][j] = sc.nextInt();
				}
			} int i = 0; int i = 0; i 0 i < boxA.length i boxA.length boxA boxA.length i++ i++ i {
				for (int j = 0; j < boxA[0].length; j++) {
					boxA[i][j] = sc.nextInt();
				}
			} {
				for (int j = 0; j < boxA[0].length; j++) {
					boxA[i][j] = sc.nextInt();
				}
			} for (int j = 0; j < boxA[0].length; j++) {
					boxA[i][j] = sc.nextInt();
				} int j = 0; int j = 0; j 0 j < boxA[0].length j boxA[0].length boxA[0] boxA 0 boxA[0].length j++ j++ j {
					boxA[i][j] = sc.nextInt();
				} {
					boxA[i][j] = sc.nextInt();
				} boxA[i][j] = sc.nextInt() boxA[i][j] boxA[i] boxA i j sc.nextInt() sc.nextInt sc for (int i = 0; i < boxB.length; i++) {
				for (int j = 0; j < boxB[0].length; j++) {
					boxB[i][j] = sc.nextInt();
				}
			} int i = 0; int i = 0; i 0 i < boxB.length i boxB.length boxB boxB.length i++ i++ i {
				for (int j = 0; j < boxB[0].length; j++) {
					boxB[i][j] = sc.nextInt();
				}
			} {
				for (int j = 0; j < boxB[0].length; j++) {
					boxB[i][j] = sc.nextInt();
				}
			} for (int j = 0; j < boxB[0].length; j++) {
					boxB[i][j] = sc.nextInt();
				} int j = 0; int j = 0; j 0 j < boxB[0].length j boxB[0].length boxB[0] boxB 0 boxB[0].length j++ j++ j {
					boxB[i][j] = sc.nextInt();
				} {
					boxB[i][j] = sc.nextInt();
				} boxB[i][j] = sc.nextInt() boxB[i][j] boxB[i] boxB i j sc.nextInt() sc.nextInt sc for (int i = 0; i < boxAnser.length; i++) {
				for (int j = 0; j < boxAnser[0].length; j++) {
					for (int k = 0; k < numM; k++) {

						boxAnser[i][j] += boxA[i][k] * boxB[k][j];
					}
				}
			} int i = 0; int i = 0; i 0 i < boxAnser.length i boxAnser.length boxAnser boxAnser.length i++ i++ i {
				for (int j = 0; j < boxAnser[0].length; j++) {
					for (int k = 0; k < numM; k++) {

						boxAnser[i][j] += boxA[i][k] * boxB[k][j];
					}
				}
			} {
				for (int j = 0; j < boxAnser[0].length; j++) {
					for (int k = 0; k < numM; k++) {

						boxAnser[i][j] += boxA[i][k] * boxB[k][j];
					}
				}
			} for (int j = 0; j < boxAnser[0].length; j++) {
					for (int k = 0; k < numM; k++) {

						boxAnser[i][j] += boxA[i][k] * boxB[k][j];
					}
				} int j = 0; int j = 0; j 0 j < boxAnser[0].length j boxAnser[0].length boxAnser[0] boxAnser 0 boxAnser[0].length j++ j++ j {
					for (int k = 0; k < numM; k++) {

						boxAnser[i][j] += boxA[i][k] * boxB[k][j];
					}
				} {
					for (int k = 0; k < numM; k++) {

						boxAnser[i][j] += boxA[i][k] * boxB[k][j];
					}
				} for (int k = 0; k < numM; k++) {

						boxAnser[i][j] += boxA[i][k] * boxB[k][j];
					} int k = 0; int k = 0; k 0 k < numM k numM k++ k++ k {

						boxAnser[i][j] += boxA[i][k] * boxB[k][j];
					} {

						boxAnser[i][j] += boxA[i][k] * boxB[k][j];
					} boxAnser[i][j] += boxA[i][k] * boxB[k][j] boxAnser[i][j] boxAnser[i] boxAnser i j boxA[i][k] * boxB[k][j] boxA[i][k] boxA[i] boxA i k boxB[k][j] boxB[k] boxB k j for (int i = 0; i < boxAnser.length; i++) {
				for (int j = 0; j < boxAnser[0].length; j++) {
					if (!outPut.equals("")) {
						outPut += " ";
					}
					outPut += boxAnser[i][j];
				}
				System.out.println(outPut);
				outPut = "";
			} int i = 0; int i = 0; i 0 i < boxAnser.length i boxAnser.length boxAnser boxAnser.length i++ i++ i {
				for (int j = 0; j < boxAnser[0].length; j++) {
					if (!outPut.equals("")) {
						outPut += " ";
					}
					outPut += boxAnser[i][j];
				}
				System.out.println(outPut);
				outPut = "";
			} {
				for (int j = 0; j < boxAnser[0].length; j++) {
					if (!outPut.equals("")) {
						outPut += " ";
					}
					outPut += boxAnser[i][j];
				}
				System.out.println(outPut);
				outPut = "";
			} for (int j = 0; j < boxAnser[0].length; j++) {
					if (!outPut.equals("")) {
						outPut += " ";
					}
					outPut += boxAnser[i][j];
				} int j = 0; int j = 0; j 0 j < boxAnser[0].length j boxAnser[0].length boxAnser[0] boxAnser 0 boxAnser[0].length j++ j++ j {
					if (!outPut.equals("")) {
						outPut += " ";
					}
					outPut += boxAnser[i][j];
				} {
					if (!outPut.equals("")) {
						outPut += " ";
					}
					outPut += boxAnser[i][j];
				} if (!outPut.equals("")) {
						outPut += " ";
					} !outPut.equals("") outPut.equals("") outPut.equals outPut "" {
						outPut += " ";
					} outPut += " " outPut " " outPut += boxAnser[i][j] outPut boxAnser[i][j] boxAnser[i] boxAnser i j System.out.println(outPut) System.out.println System.out System System.out outPut outPut = "" outPut "" String[] args args public class Main {

	public static void main(String[] args) {

		int numN;
		int numM;
		int numL;

		long[][] boxA;
		long[][] boxB;
		long[][] boxAnser;

		String outPut = "";

		Scanner sc = null;

		try {
			sc = new Scanner(System.in);

			//1???????????\???
			numN = sc.nextInt();
			numM = sc.nextInt();
			numL = sc.nextInt();

			boxA = new long[numN][numM];
			boxB = new long[numM][numL];
			boxAnser = new long[numN][numL];

			//???????????????

			//??????A?????????
			for (int i = 0; i < boxA.length; i++) {
				for (int j = 0; j < boxA[0].length; j++) {
					boxA[i][j] = sc.nextInt();
				}
			}
			//??????B?????????
			for (int i = 0; i < boxB.length; i++) {
				for (int j = 0; j < boxB[0].length; j++) {
					boxB[i][j] = sc.nextInt();
				}
			}
			//??????????£???§?¨????
			for (int i = 0; i < boxAnser.length; i++) {
				for (int j = 0; j < boxAnser[0].length; j++) {
					for (int k = 0; k < numM; k++) {

						boxAnser[i][j] += boxA[i][k] * boxB[k][j];
					}
				}
			}

			//???????????????
			for (int i = 0; i < boxAnser.length; i++) {
				for (int j = 0; j < boxAnser[0].length; j++) {
					if (!outPut.equals("")) {
						outPut += " ";
					}
					outPut += boxAnser[i][j];
				}
				System.out.println(outPut);
				outPut = "";
			}
		} finally {
			sc.close();
		}
	}

} public class Main {

	public static void main(String[] args) {

		int numN;
		int numM;
		int numL;

		long[][] boxA;
		long[][] boxB;
		long[][] boxAnser;

		String outPut = "";

		Scanner sc = null;

		try {
			sc = new Scanner(System.in);

			//1???????????\???
			numN = sc.nextInt();
			numM = sc.nextInt();
			numL = sc.nextInt();

			boxA = new long[numN][numM];
			boxB = new long[numM][numL];
			boxAnser = new long[numN][numL];

			//???????????????

			//??????A?????????
			for (int i = 0; i < boxA.length; i++) {
				for (int j = 0; j < boxA[0].length; j++) {
					boxA[i][j] = sc.nextInt();
				}
			}
			//??????B?????????
			for (int i = 0; i < boxB.length; i++) {
				for (int j = 0; j < boxB[0].length; j++) {
					boxB[i][j] = sc.nextInt();
				}
			}
			//??????????£???§?¨????
			for (int i = 0; i < boxAnser.length; i++) {
				for (int j = 0; j < boxAnser[0].length; j++) {
					for (int k = 0; k < numM; k++) {

						boxAnser[i][j] += boxA[i][k] * boxB[k][j];
					}
				}
			}

			//???????????????
			for (int i = 0; i < boxAnser.length; i++) {
				for (int j = 0; j < boxAnser[0].length; j++) {
					if (!outPut.equals("")) {
						outPut += " ";
					}
					outPut += boxAnser[i][j];
				}
				System.out.println(outPut);
				outPut = "";
			}
		} finally {
			sc.close();
		}
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		int numN;
		int numM;
		int numL;

		long[][] boxA;
		long[][] boxB;
		long[][] boxAnser;

		String outPut = "";

		Scanner sc = null;

		try {
			sc = new Scanner(System.in);

			//1???????????\???
			numN = sc.nextInt();
			numM = sc.nextInt();
			numL = sc.nextInt();

			boxA = new long[numN][numM];
			boxB = new long[numM][numL];
			boxAnser = new long[numN][numL];

			//???????????????

			//??????A?????????
			for (int i = 0; i < boxA.length; i++) {
				for (int j = 0; j < boxA[0].length; j++) {
					boxA[i][j] = sc.nextInt();
				}
			}
			//??????B?????????
			for (int i = 0; i < boxB.length; i++) {
				for (int j = 0; j < boxB[0].length; j++) {
					boxB[i][j] = sc.nextInt();
				}
			}
			//??????????£???§?¨????
			for (int i = 0; i < boxAnser.length; i++) {
				for (int j = 0; j < boxAnser[0].length; j++) {
					for (int k = 0; k < numM; k++) {

						boxAnser[i][j] += boxA[i][k] * boxB[k][j];
					}
				}
			}

			//???????????????
			for (int i = 0; i < boxAnser.length; i++) {
				for (int j = 0; j < boxAnser[0].length; j++) {
					if (!outPut.equals("")) {
						outPut += " ";
					}
					outPut += boxAnser[i][j];
				}
				System.out.println(outPut);
				outPut = "";
			}
		} finally {
			sc.close();
		}
	}

}