

import java.util.*;

public class Main {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int n, m, l, c1, c2;
		n = scan.nextInt();
		m = scan.nextInt();
		l = scan.nextInt();
		long rs = 0;// ?¨???????????????????????????????
		c1 = 0;// ????¬???????????????????
		c2 = 0;// ????¬???????????????????

		// ????¬???????????????¨???
		long num1[][] = new long[n + 5][m + 5];
		long num2[][] = new long[m + 5][l + 5];
		long result[][] = new long[n + 5][l + 5];

		// ????¬???????????????\??? num1
		for (int count = 0; count < n; count++) {
			for (int count2 = 0; count2 < m; count2++) {
				num1[count][count2] = scan.nextInt();
			}
		}
		// ????¬???????????????\??? num2
		for (int count3 = 0; count3 < m; count3++) {
			for (int count4 = 0; count4 < l; count4++) {
				num2[count3][count4] = scan.nextInt();
			}
		}

		// ?¨???? (n*m)?????°????????????
		// l??????????????????????????????
		for (int count7 = 0; count7 < l; count7++) {
			for (int count5 = 0; count5 < n; count5++) {
				for (int count6 = 0; count6 < m; count6++) {
					rs = rs + num1[count5][count6] * num2[count6][c2];
				}
				result[c1][c2] = rs;
				c1++;
				rs = 0;
			}

			c1 = 0;
			c2++;
		}

		// output (n*m)?????????
		for (int i = 0; i < n; i++) {
			for (int i2 = 0; i2 < l; i2++) {
				sb.append(result[i][i2]);
				if (i2 != (l - 1)) {
					sb.append(" ");
				}
			}
			sb.append("\n");
		}

		System.out.print(new String(sb));

	}
} import java.util.*; util.* java public class Main {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int n, m, l, c1, c2;
		n = scan.nextInt();
		m = scan.nextInt();
		l = scan.nextInt();
		long rs = 0;// ?¨???????????????????????????????
		c1 = 0;// ????¬???????????????????
		c2 = 0;// ????¬???????????????????

		// ????¬???????????????¨???
		long num1[][] = new long[n + 5][m + 5];
		long num2[][] = new long[m + 5][l + 5];
		long result[][] = new long[n + 5][l + 5];

		// ????¬???????????????\??? num1
		for (int count = 0; count < n; count++) {
			for (int count2 = 0; count2 < m; count2++) {
				num1[count][count2] = scan.nextInt();
			}
		}
		// ????¬???????????????\??? num2
		for (int count3 = 0; count3 < m; count3++) {
			for (int count4 = 0; count4 < l; count4++) {
				num2[count3][count4] = scan.nextInt();
			}
		}

		// ?¨???? (n*m)?????°????????????
		// l??????????????????????????????
		for (int count7 = 0; count7 < l; count7++) {
			for (int count5 = 0; count5 < n; count5++) {
				for (int count6 = 0; count6 < m; count6++) {
					rs = rs + num1[count5][count6] * num2[count6][c2];
				}
				result[c1][c2] = rs;
				c1++;
				rs = 0;
			}

			c1 = 0;
			c2++;
		}

		// output (n*m)?????????
		for (int i = 0; i < n; i++) {
			for (int i2 = 0; i2 < l; i2++) {
				sb.append(result[i][i2]);
				if (i2 != (l - 1)) {
					sb.append(" ");
				}
			}
			sb.append("\n");
		}

		System.out.print(new String(sb));

	}
} Main public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int n, m, l, c1, c2;
		n = scan.nextInt();
		m = scan.nextInt();
		l = scan.nextInt();
		long rs = 0;// ?¨???????????????????????????????
		c1 = 0;// ????¬???????????????????
		c2 = 0;// ????¬???????????????????

		// ????¬???????????????¨???
		long num1[][] = new long[n + 5][m + 5];
		long num2[][] = new long[m + 5][l + 5];
		long result[][] = new long[n + 5][l + 5];

		// ????¬???????????????\??? num1
		for (int count = 0; count < n; count++) {
			for (int count2 = 0; count2 < m; count2++) {
				num1[count][count2] = scan.nextInt();
			}
		}
		// ????¬???????????????\??? num2
		for (int count3 = 0; count3 < m; count3++) {
			for (int count4 = 0; count4 < l; count4++) {
				num2[count3][count4] = scan.nextInt();
			}
		}

		// ?¨???? (n*m)?????°????????????
		// l??????????????????????????????
		for (int count7 = 0; count7 < l; count7++) {
			for (int count5 = 0; count5 < n; count5++) {
				for (int count6 = 0; count6 < m; count6++) {
					rs = rs + num1[count5][count6] * num2[count6][c2];
				}
				result[c1][c2] = rs;
				c1++;
				rs = 0;
			}

			c1 = 0;
			c2++;
		}

		// output (n*m)?????????
		for (int i = 0; i < n; i++) {
			for (int i2 = 0; i2 < l; i2++) {
				sb.append(result[i][i2]);
				if (i2 != (l - 1)) {
					sb.append(" ");
				}
			}
			sb.append("\n");
		}

		System.out.print(new String(sb));

	} main {
		Scanner scan = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int n, m, l, c1, c2;
		n = scan.nextInt();
		m = scan.nextInt();
		l = scan.nextInt();
		long rs = 0;// ?¨???????????????????????????????
		c1 = 0;// ????¬???????????????????
		c2 = 0;// ????¬???????????????????

		// ????¬???????????????¨???
		long num1[][] = new long[n + 5][m + 5];
		long num2[][] = new long[m + 5][l + 5];
		long result[][] = new long[n + 5][l + 5];

		// ????¬???????????????\??? num1
		for (int count = 0; count < n; count++) {
			for (int count2 = 0; count2 < m; count2++) {
				num1[count][count2] = scan.nextInt();
			}
		}
		// ????¬???????????????\??? num2
		for (int count3 = 0; count3 < m; count3++) {
			for (int count4 = 0; count4 < l; count4++) {
				num2[count3][count4] = scan.nextInt();
			}
		}

		// ?¨???? (n*m)?????°????????????
		// l??????????????????????????????
		for (int count7 = 0; count7 < l; count7++) {
			for (int count5 = 0; count5 < n; count5++) {
				for (int count6 = 0; count6 < m; count6++) {
					rs = rs + num1[count5][count6] * num2[count6][c2];
				}
				result[c1][c2] = rs;
				c1++;
				rs = 0;
			}

			c1 = 0;
			c2++;
		}

		// output (n*m)?????????
		for (int i = 0; i < n; i++) {
			for (int i2 = 0; i2 < l; i2++) {
				sb.append(result[i][i2]);
				if (i2 != (l - 1)) {
					sb.append(" ");
				}
			}
			sb.append("\n");
		}

		System.out.print(new String(sb));

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) StringBuilder sb = new StringBuilder(); sb new StringBuilder() int n n m m l l c1 c1 c2; c2 n = scan.nextInt() n scan.nextInt() scan.nextInt scan m = scan.nextInt() m scan.nextInt() scan.nextInt scan l = scan.nextInt() l scan.nextInt() scan.nextInt scan long rs = 0; rs 0 c1 = 0 c1 0 c2 = 0 c2 0 long num1[][] = new long[n + 5][m + 5]; num1 new long[n + 5][m + 5] n + 5 n 5 m + 5 m 5 long num2[][] = new long[m + 5][l + 5]; num2 new long[m + 5][l + 5] m + 5 m 5 l + 5 l 5 long result[][] = new long[n + 5][l + 5]; result new long[n + 5][l + 5] n + 5 n 5 l + 5 l 5 for (int count = 0; count < n; count++) {
			for (int count2 = 0; count2 < m; count2++) {
				num1[count][count2] = scan.nextInt();
			}
		} int count = 0; int count = 0; count 0 count < n count n count++ count++ count {
			for (int count2 = 0; count2 < m; count2++) {
				num1[count][count2] = scan.nextInt();
			}
		} {
			for (int count2 = 0; count2 < m; count2++) {
				num1[count][count2] = scan.nextInt();
			}
		} for (int count2 = 0; count2 < m; count2++) {
				num1[count][count2] = scan.nextInt();
			} int count2 = 0; int count2 = 0; count2 0 count2 < m count2 m count2++ count2++ count2 {
				num1[count][count2] = scan.nextInt();
			} {
				num1[count][count2] = scan.nextInt();
			} num1[count][count2] = scan.nextInt() num1[count][count2] num1[count] num1 count count2 scan.nextInt() scan.nextInt scan for (int count3 = 0; count3 < m; count3++) {
			for (int count4 = 0; count4 < l; count4++) {
				num2[count3][count4] = scan.nextInt();
			}
		} int count3 = 0; int count3 = 0; count3 0 count3 < m count3 m count3++ count3++ count3 {
			for (int count4 = 0; count4 < l; count4++) {
				num2[count3][count4] = scan.nextInt();
			}
		} {
			for (int count4 = 0; count4 < l; count4++) {
				num2[count3][count4] = scan.nextInt();
			}
		} for (int count4 = 0; count4 < l; count4++) {
				num2[count3][count4] = scan.nextInt();
			} int count4 = 0; int count4 = 0; count4 0 count4 < l count4 l count4++ count4++ count4 {
				num2[count3][count4] = scan.nextInt();
			} {
				num2[count3][count4] = scan.nextInt();
			} num2[count3][count4] = scan.nextInt() num2[count3][count4] num2[count3] num2 count3 count4 scan.nextInt() scan.nextInt scan for (int count7 = 0; count7 < l; count7++) {
			for (int count5 = 0; count5 < n; count5++) {
				for (int count6 = 0; count6 < m; count6++) {
					rs = rs + num1[count5][count6] * num2[count6][c2];
				}
				result[c1][c2] = rs;
				c1++;
				rs = 0;
			}

			c1 = 0;
			c2++;
		} int count7 = 0; int count7 = 0; count7 0 count7 < l count7 l count7++ count7++ count7 {
			for (int count5 = 0; count5 < n; count5++) {
				for (int count6 = 0; count6 < m; count6++) {
					rs = rs + num1[count5][count6] * num2[count6][c2];
				}
				result[c1][c2] = rs;
				c1++;
				rs = 0;
			}

			c1 = 0;
			c2++;
		} {
			for (int count5 = 0; count5 < n; count5++) {
				for (int count6 = 0; count6 < m; count6++) {
					rs = rs + num1[count5][count6] * num2[count6][c2];
				}
				result[c1][c2] = rs;
				c1++;
				rs = 0;
			}

			c1 = 0;
			c2++;
		} for (int count5 = 0; count5 < n; count5++) {
				for (int count6 = 0; count6 < m; count6++) {
					rs = rs + num1[count5][count6] * num2[count6][c2];
				}
				result[c1][c2] = rs;
				c1++;
				rs = 0;
			} int count5 = 0; int count5 = 0; count5 0 count5 < n count5 n count5++ count5++ count5 {
				for (int count6 = 0; count6 < m; count6++) {
					rs = rs + num1[count5][count6] * num2[count6][c2];
				}
				result[c1][c2] = rs;
				c1++;
				rs = 0;
			} {
				for (int count6 = 0; count6 < m; count6++) {
					rs = rs + num1[count5][count6] * num2[count6][c2];
				}
				result[c1][c2] = rs;
				c1++;
				rs = 0;
			} for (int count6 = 0; count6 < m; count6++) {
					rs = rs + num1[count5][count6] * num2[count6][c2];
				} int count6 = 0; int count6 = 0; count6 0 count6 < m count6 m count6++ count6++ count6 {
					rs = rs + num1[count5][count6] * num2[count6][c2];
				} {
					rs = rs + num1[count5][count6] * num2[count6][c2];
				} rs = rs + num1[count5][count6] * num2[count6][c2] rs rs + num1[count5][count6] * num2[count6][c2] rs num1[count5][count6] * num2[count6][c2] num1[count5][count6] num1[count5] num1 count5 count6 num2[count6][c2] num2[count6] num2 count6 c2 result[c1][c2] = rs result[c1][c2] result[c1] result c1 c2 rs c1++ c1 rs = 0 rs 0 c1 = 0 c1 0 c2++ c2 for (int i = 0; i < n; i++) {
			for (int i2 = 0; i2 < l; i2++) {
				sb.append(result[i][i2]);
				if (i2 != (l - 1)) {
					sb.append(" ");
				}
			}
			sb.append("\n");
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			for (int i2 = 0; i2 < l; i2++) {
				sb.append(result[i][i2]);
				if (i2 != (l - 1)) {
					sb.append(" ");
				}
			}
			sb.append("\n");
		} {
			for (int i2 = 0; i2 < l; i2++) {
				sb.append(result[i][i2]);
				if (i2 != (l - 1)) {
					sb.append(" ");
				}
			}
			sb.append("\n");
		} for (int i2 = 0; i2 < l; i2++) {
				sb.append(result[i][i2]);
				if (i2 != (l - 1)) {
					sb.append(" ");
				}
			} int i2 = 0; int i2 = 0; i2 0 i2 < l i2 l i2++ i2++ i2 {
				sb.append(result[i][i2]);
				if (i2 != (l - 1)) {
					sb.append(" ");
				}
			} {
				sb.append(result[i][i2]);
				if (i2 != (l - 1)) {
					sb.append(" ");
				}
			} sb.append(result[i][i2]) sb.append sb result[i][i2] result[i] result i i2 if (i2 != (l - 1)) {
					sb.append(" ");
				} i2 != (l - 1) i2 (l - 1) l 1 {
					sb.append(" ");
				} sb.append(" ") sb.append sb " " sb.append("\n") sb.append sb "\n" System.out.print(new String(sb)) System.out.print System.out System System.out new String(sb) String args[] args public class Main {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int n, m, l, c1, c2;
		n = scan.nextInt();
		m = scan.nextInt();
		l = scan.nextInt();
		long rs = 0;// ?¨???????????????????????????????
		c1 = 0;// ????¬???????????????????
		c2 = 0;// ????¬???????????????????

		// ????¬???????????????¨???
		long num1[][] = new long[n + 5][m + 5];
		long num2[][] = new long[m + 5][l + 5];
		long result[][] = new long[n + 5][l + 5];

		// ????¬???????????????\??? num1
		for (int count = 0; count < n; count++) {
			for (int count2 = 0; count2 < m; count2++) {
				num1[count][count2] = scan.nextInt();
			}
		}
		// ????¬???????????????\??? num2
		for (int count3 = 0; count3 < m; count3++) {
			for (int count4 = 0; count4 < l; count4++) {
				num2[count3][count4] = scan.nextInt();
			}
		}

		// ?¨???? (n*m)?????°????????????
		// l??????????????????????????????
		for (int count7 = 0; count7 < l; count7++) {
			for (int count5 = 0; count5 < n; count5++) {
				for (int count6 = 0; count6 < m; count6++) {
					rs = rs + num1[count5][count6] * num2[count6][c2];
				}
				result[c1][c2] = rs;
				c1++;
				rs = 0;
			}

			c1 = 0;
			c2++;
		}

		// output (n*m)?????????
		for (int i = 0; i < n; i++) {
			for (int i2 = 0; i2 < l; i2++) {
				sb.append(result[i][i2]);
				if (i2 != (l - 1)) {
					sb.append(" ");
				}
			}
			sb.append("\n");
		}

		System.out.print(new String(sb));

	}
} public class Main {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int n, m, l, c1, c2;
		n = scan.nextInt();
		m = scan.nextInt();
		l = scan.nextInt();
		long rs = 0;// ?¨???????????????????????????????
		c1 = 0;// ????¬???????????????????
		c2 = 0;// ????¬???????????????????

		// ????¬???????????????¨???
		long num1[][] = new long[n + 5][m + 5];
		long num2[][] = new long[m + 5][l + 5];
		long result[][] = new long[n + 5][l + 5];

		// ????¬???????????????\??? num1
		for (int count = 0; count < n; count++) {
			for (int count2 = 0; count2 < m; count2++) {
				num1[count][count2] = scan.nextInt();
			}
		}
		// ????¬???????????????\??? num2
		for (int count3 = 0; count3 < m; count3++) {
			for (int count4 = 0; count4 < l; count4++) {
				num2[count3][count4] = scan.nextInt();
			}
		}

		// ?¨???? (n*m)?????°????????????
		// l??????????????????????????????
		for (int count7 = 0; count7 < l; count7++) {
			for (int count5 = 0; count5 < n; count5++) {
				for (int count6 = 0; count6 < m; count6++) {
					rs = rs + num1[count5][count6] * num2[count6][c2];
				}
				result[c1][c2] = rs;
				c1++;
				rs = 0;
			}

			c1 = 0;
			c2++;
		}

		// output (n*m)?????????
		for (int i = 0; i < n; i++) {
			for (int i2 = 0; i2 < l; i2++) {
				sb.append(result[i][i2]);
				if (i2 != (l - 1)) {
					sb.append(" ");
				}
			}
			sb.append("\n");
		}

		System.out.print(new String(sb));

	}
} Main


import java.util.*;

public class Main {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int n, m, l, c1, c2;
		n = scan.nextInt();
		m = scan.nextInt();
		l = scan.nextInt();
		long rs = 0;// ?¨???????????????????????????????
		c1 = 0;// ????¬???????????????????
		c2 = 0;// ????¬???????????????????

		// ????¬???????????????¨???
		long num1[][] = new long[n + 5][m + 5];
		long num2[][] = new long[m + 5][l + 5];
		long result[][] = new long[n + 5][l + 5];

		// ????¬???????????????\??? num1
		for (int count = 0; count < n; count++) {
			for (int count2 = 0; count2 < m; count2++) {
				num1[count][count2] = scan.nextInt();
			}
		}
		// ????¬???????????????\??? num2
		for (int count3 = 0; count3 < m; count3++) {
			for (int count4 = 0; count4 < l; count4++) {
				num2[count3][count4] = scan.nextInt();
			}
		}

		// ?¨???? (n*m)?????°????????????
		// l??????????????????????????????
		for (int count7 = 0; count7 < l; count7++) {
			for (int count5 = 0; count5 < n; count5++) {
				for (int count6 = 0; count6 < m; count6++) {
					rs = rs + num1[count5][count6] * num2[count6][c2];
				}
				result[c1][c2] = rs;
				c1++;
				rs = 0;
			}

			c1 = 0;
			c2++;
		}

		// output (n*m)?????????
		for (int i = 0; i < n; i++) {
			for (int i2 = 0; i2 < l; i2++) {
				sb.append(result[i][i2]);
				if (i2 != (l - 1)) {
					sb.append(" ");
				}
			}
			sb.append("\n");
		}

		System.out.print(new String(sb));

	}
}