import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int m = scanner.nextInt();
		int l = scanner.nextInt();
		int A[][] = new int[n][m];
		int b[][] = new int[m][l];
		long c[][] = new long[n][l];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				A[i][j] = scanner.nextInt();
			}
		}
		for (int j = 0; j < m; j++) {
			for (int k = 0; k < l; k++) {
				b[j][k] = scanner.nextInt();
			}
		}
		for (int i = 0; i < n; i++) {
			for (int k = 0; k < l; k++) {
				for (int j = 0; j < m; j++) {
					c[i][k] = A[i][j] * b[j][k]+c[i][k];
				}

			}
		}
		for (int i = 0; i < n; i++) {
			for (int k = 0; k < l; k++) {
				System.out.print(c[i][k]);
				if (k == l - 1) {
					System.out.println();
				} else {
					System.out.print(" ");
				}
			}
		}

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

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int m = scanner.nextInt();
		int l = scanner.nextInt();
		int A[][] = new int[n][m];
		int b[][] = new int[m][l];
		long c[][] = new long[n][l];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				A[i][j] = scanner.nextInt();
			}
		}
		for (int j = 0; j < m; j++) {
			for (int k = 0; k < l; k++) {
				b[j][k] = scanner.nextInt();
			}
		}
		for (int i = 0; i < n; i++) {
			for (int k = 0; k < l; k++) {
				for (int j = 0; j < m; j++) {
					c[i][k] = A[i][j] * b[j][k]+c[i][k];
				}

			}
		}
		for (int i = 0; i < n; i++) {
			for (int k = 0; k < l; k++) {
				System.out.print(c[i][k]);
				if (k == l - 1) {
					System.out.println();
				} else {
					System.out.print(" ");
				}
			}
		}

	}
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int m = scanner.nextInt();
		int l = scanner.nextInt();
		int A[][] = new int[n][m];
		int b[][] = new int[m][l];
		long c[][] = new long[n][l];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				A[i][j] = scanner.nextInt();
			}
		}
		for (int j = 0; j < m; j++) {
			for (int k = 0; k < l; k++) {
				b[j][k] = scanner.nextInt();
			}
		}
		for (int i = 0; i < n; i++) {
			for (int k = 0; k < l; k++) {
				for (int j = 0; j < m; j++) {
					c[i][k] = A[i][j] * b[j][k]+c[i][k];
				}

			}
		}
		for (int i = 0; i < n; i++) {
			for (int k = 0; k < l; k++) {
				System.out.print(c[i][k]);
				if (k == l - 1) {
					System.out.println();
				} else {
					System.out.print(" ");
				}
			}
		}

	} main {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int m = scanner.nextInt();
		int l = scanner.nextInt();
		int A[][] = new int[n][m];
		int b[][] = new int[m][l];
		long c[][] = new long[n][l];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				A[i][j] = scanner.nextInt();
			}
		}
		for (int j = 0; j < m; j++) {
			for (int k = 0; k < l; k++) {
				b[j][k] = scanner.nextInt();
			}
		}
		for (int i = 0; i < n; i++) {
			for (int k = 0; k < l; k++) {
				for (int j = 0; j < m; j++) {
					c[i][k] = A[i][j] * b[j][k]+c[i][k];
				}

			}
		}
		for (int i = 0; i < n; i++) {
			for (int k = 0; k < l; k++) {
				System.out.print(c[i][k]);
				if (k == l - 1) {
					System.out.println();
				} else {
					System.out.print(" ");
				}
			}
		}

	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int m = scanner.nextInt(); m scanner.nextInt() scanner.nextInt scanner int l = scanner.nextInt(); l scanner.nextInt() scanner.nextInt scanner int A[][] = new int[n][m]; A new int[n][m] n m int b[][] = new int[m][l]; b new int[m][l] m l long c[][] = new long[n][l]; c new long[n][l] n l for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				A[i][j] = scanner.nextInt();
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			for (int j = 0; j < m; j++) {
				A[i][j] = scanner.nextInt();
			}
		} {
			for (int j = 0; j < m; j++) {
				A[i][j] = scanner.nextInt();
			}
		} for (int j = 0; j < m; j++) {
				A[i][j] = scanner.nextInt();
			} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
				A[i][j] = scanner.nextInt();
			} {
				A[i][j] = scanner.nextInt();
			} A[i][j] = scanner.nextInt() A[i][j] A[i] A i j scanner.nextInt() scanner.nextInt scanner for (int j = 0; j < m; j++) {
			for (int k = 0; k < l; k++) {
				b[j][k] = scanner.nextInt();
			}
		} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
			for (int k = 0; k < l; k++) {
				b[j][k] = scanner.nextInt();
			}
		} {
			for (int k = 0; k < l; k++) {
				b[j][k] = scanner.nextInt();
			}
		} for (int k = 0; k < l; k++) {
				b[j][k] = scanner.nextInt();
			} int k = 0; int k = 0; k 0 k < l k l k++ k++ k {
				b[j][k] = scanner.nextInt();
			} {
				b[j][k] = scanner.nextInt();
			} b[j][k] = scanner.nextInt() b[j][k] b[j] b j k scanner.nextInt() scanner.nextInt scanner for (int i = 0; i < n; i++) {
			for (int k = 0; k < l; k++) {
				for (int j = 0; j < m; j++) {
					c[i][k] = A[i][j] * b[j][k]+c[i][k];
				}

			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			for (int k = 0; k < l; k++) {
				for (int j = 0; j < m; j++) {
					c[i][k] = A[i][j] * b[j][k]+c[i][k];
				}

			}
		} {
			for (int k = 0; k < l; k++) {
				for (int j = 0; j < m; j++) {
					c[i][k] = A[i][j] * b[j][k]+c[i][k];
				}

			}
		} for (int k = 0; k < l; k++) {
				for (int j = 0; j < m; j++) {
					c[i][k] = A[i][j] * b[j][k]+c[i][k];
				}

			} int k = 0; int k = 0; k 0 k < l k l k++ k++ k {
				for (int j = 0; j < m; j++) {
					c[i][k] = A[i][j] * b[j][k]+c[i][k];
				}

			} {
				for (int j = 0; j < m; j++) {
					c[i][k] = A[i][j] * b[j][k]+c[i][k];
				}

			} for (int j = 0; j < m; j++) {
					c[i][k] = A[i][j] * b[j][k]+c[i][k];
				} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
					c[i][k] = A[i][j] * b[j][k]+c[i][k];
				} {
					c[i][k] = A[i][j] * b[j][k]+c[i][k];
				} c[i][k] = A[i][j] * b[j][k]+c[i][k] c[i][k] c[i] c i k A[i][j] * b[j][k]+c[i][k] A[i][j] * b[j][k] A[i][j] A[i] A i j b[j][k] b[j] b j k c[i][k] c[i] c i k for (int i = 0; i < n; i++) {
			for (int k = 0; k < l; k++) {
				System.out.print(c[i][k]);
				if (k == l - 1) {
					System.out.println();
				} else {
					System.out.print(" ");
				}
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			for (int k = 0; k < l; k++) {
				System.out.print(c[i][k]);
				if (k == l - 1) {
					System.out.println();
				} else {
					System.out.print(" ");
				}
			}
		} {
			for (int k = 0; k < l; k++) {
				System.out.print(c[i][k]);
				if (k == l - 1) {
					System.out.println();
				} else {
					System.out.print(" ");
				}
			}
		} for (int k = 0; k < l; k++) {
				System.out.print(c[i][k]);
				if (k == l - 1) {
					System.out.println();
				} else {
					System.out.print(" ");
				}
			} int k = 0; int k = 0; k 0 k < l k l k++ k++ k {
				System.out.print(c[i][k]);
				if (k == l - 1) {
					System.out.println();
				} else {
					System.out.print(" ");
				}
			} {
				System.out.print(c[i][k]);
				if (k == l - 1) {
					System.out.println();
				} else {
					System.out.print(" ");
				}
			} System.out.print(c[i][k]) System.out.print System.out System System.out c[i][k] c[i] c i k if (k == l - 1) {
					System.out.println();
				} else {
					System.out.print(" ");
				} k == l - 1 k l - 1 l 1 {
					System.out.println();
				} System.out.println() System.out.println System.out System System.out {
					System.out.print(" ");
				} System.out.print(" ") System.out.print System.out System System.out " " String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int m = scanner.nextInt();
		int l = scanner.nextInt();
		int A[][] = new int[n][m];
		int b[][] = new int[m][l];
		long c[][] = new long[n][l];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				A[i][j] = scanner.nextInt();
			}
		}
		for (int j = 0; j < m; j++) {
			for (int k = 0; k < l; k++) {
				b[j][k] = scanner.nextInt();
			}
		}
		for (int i = 0; i < n; i++) {
			for (int k = 0; k < l; k++) {
				for (int j = 0; j < m; j++) {
					c[i][k] = A[i][j] * b[j][k]+c[i][k];
				}

			}
		}
		for (int i = 0; i < n; i++) {
			for (int k = 0; k < l; k++) {
				System.out.print(c[i][k]);
				if (k == l - 1) {
					System.out.println();
				} else {
					System.out.print(" ");
				}
			}
		}

	}
} public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int m = scanner.nextInt();
		int l = scanner.nextInt();
		int A[][] = new int[n][m];
		int b[][] = new int[m][l];
		long c[][] = new long[n][l];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				A[i][j] = scanner.nextInt();
			}
		}
		for (int j = 0; j < m; j++) {
			for (int k = 0; k < l; k++) {
				b[j][k] = scanner.nextInt();
			}
		}
		for (int i = 0; i < n; i++) {
			for (int k = 0; k < l; k++) {
				for (int j = 0; j < m; j++) {
					c[i][k] = A[i][j] * b[j][k]+c[i][k];
				}

			}
		}
		for (int i = 0; i < n; i++) {
			for (int k = 0; k < l; k++) {
				System.out.print(c[i][k]);
				if (k == l - 1) {
					System.out.println();
				} else {
					System.out.print(" ");
				}
			}
		}

	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int m = scanner.nextInt();
		int l = scanner.nextInt();
		int A[][] = new int[n][m];
		int b[][] = new int[m][l];
		long c[][] = new long[n][l];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				A[i][j] = scanner.nextInt();
			}
		}
		for (int j = 0; j < m; j++) {
			for (int k = 0; k < l; k++) {
				b[j][k] = scanner.nextInt();
			}
		}
		for (int i = 0; i < n; i++) {
			for (int k = 0; k < l; k++) {
				for (int j = 0; j < m; j++) {
					c[i][k] = A[i][j] * b[j][k]+c[i][k];
				}

			}
		}
		for (int i = 0; i < n; i++) {
			for (int k = 0; k < l; k++) {
				System.out.print(c[i][k]);
				if (k == l - 1) {
					System.out.println();
				} else {
					System.out.print(" ");
				}
			}
		}

	}
}

