import java.util.Scanner;

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 nm[][] = new int[n][m];
		int ml[][] = new int[m][l];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				nm[i][j] = sc.nextInt();
			}
		}
		for (int i = 0; i < m; i++) {
			for (int j = 0; j < l; j++) {
				ml[i][j] = sc.nextInt();
			}
		}
		long ans = 0;
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				ans = 0;
				for (int k = 0; k < m; k++) {
					ans += nm[i][k] * ml[k][j];
				}
				if(j!=l-1) {
					System.out.print(ans + " ");
				}else {
					System.out.print(ans);
				}
			}
			System.out.println();
		}
	}
} import java.util.Scanner; Scanner 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 nm[][] = new int[n][m];
		int ml[][] = new int[m][l];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				nm[i][j] = sc.nextInt();
			}
		}
		for (int i = 0; i < m; i++) {
			for (int j = 0; j < l; j++) {
				ml[i][j] = sc.nextInt();
			}
		}
		long ans = 0;
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				ans = 0;
				for (int k = 0; k < m; k++) {
					ans += nm[i][k] * ml[k][j];
				}
				if(j!=l-1) {
					System.out.print(ans + " ");
				}else {
					System.out.print(ans);
				}
			}
			System.out.println();
		}
	}
} 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 nm[][] = new int[n][m];
		int ml[][] = new int[m][l];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				nm[i][j] = sc.nextInt();
			}
		}
		for (int i = 0; i < m; i++) {
			for (int j = 0; j < l; j++) {
				ml[i][j] = sc.nextInt();
			}
		}
		long ans = 0;
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				ans = 0;
				for (int k = 0; k < m; k++) {
					ans += nm[i][k] * ml[k][j];
				}
				if(j!=l-1) {
					System.out.print(ans + " ");
				}else {
					System.out.print(ans);
				}
			}
			System.out.println();
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int l = sc.nextInt();
		int nm[][] = new int[n][m];
		int ml[][] = new int[m][l];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				nm[i][j] = sc.nextInt();
			}
		}
		for (int i = 0; i < m; i++) {
			for (int j = 0; j < l; j++) {
				ml[i][j] = sc.nextInt();
			}
		}
		long ans = 0;
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				ans = 0;
				for (int k = 0; k < m; k++) {
					ans += nm[i][k] * ml[k][j];
				}
				if(j!=l-1) {
					System.out.print(ans + " ");
				}else {
					System.out.print(ans);
				}
			}
			System.out.println();
		}
	} 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 nm[][] = new int[n][m]; nm new int[n][m] n m int ml[][] = new int[m][l]; ml new int[m][l] m l for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				nm[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++) {
				nm[i][j] = sc.nextInt();
			}
		} {
			for (int j = 0; j < m; j++) {
				nm[i][j] = sc.nextInt();
			}
		} for (int j = 0; j < m; j++) {
				nm[i][j] = sc.nextInt();
			} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
				nm[i][j] = sc.nextInt();
			} {
				nm[i][j] = sc.nextInt();
			} nm[i][j] = sc.nextInt() nm[i][j] nm[i] nm i j sc.nextInt() sc.nextInt sc for (int i = 0; i < m; i++) {
			for (int j = 0; j < l; j++) {
				ml[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++) {
				ml[i][j] = sc.nextInt();
			}
		} {
			for (int j = 0; j < l; j++) {
				ml[i][j] = sc.nextInt();
			}
		} for (int j = 0; j < l; j++) {
				ml[i][j] = sc.nextInt();
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				ml[i][j] = sc.nextInt();
			} {
				ml[i][j] = sc.nextInt();
			} ml[i][j] = sc.nextInt() ml[i][j] ml[i] ml i j sc.nextInt() sc.nextInt sc long ans = 0; ans 0 for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				ans = 0;
				for (int k = 0; k < m; k++) {
					ans += nm[i][k] * ml[k][j];
				}
				if(j!=l-1) {
					System.out.print(ans + " ");
				}else {
					System.out.print(ans);
				}
			}
			System.out.println();
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			for (int j = 0; j < l; j++) {
				ans = 0;
				for (int k = 0; k < m; k++) {
					ans += nm[i][k] * ml[k][j];
				}
				if(j!=l-1) {
					System.out.print(ans + " ");
				}else {
					System.out.print(ans);
				}
			}
			System.out.println();
		} {
			for (int j = 0; j < l; j++) {
				ans = 0;
				for (int k = 0; k < m; k++) {
					ans += nm[i][k] * ml[k][j];
				}
				if(j!=l-1) {
					System.out.print(ans + " ");
				}else {
					System.out.print(ans);
				}
			}
			System.out.println();
		} for (int j = 0; j < l; j++) {
				ans = 0;
				for (int k = 0; k < m; k++) {
					ans += nm[i][k] * ml[k][j];
				}
				if(j!=l-1) {
					System.out.print(ans + " ");
				}else {
					System.out.print(ans);
				}
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				ans = 0;
				for (int k = 0; k < m; k++) {
					ans += nm[i][k] * ml[k][j];
				}
				if(j!=l-1) {
					System.out.print(ans + " ");
				}else {
					System.out.print(ans);
				}
			} {
				ans = 0;
				for (int k = 0; k < m; k++) {
					ans += nm[i][k] * ml[k][j];
				}
				if(j!=l-1) {
					System.out.print(ans + " ");
				}else {
					System.out.print(ans);
				}
			} ans = 0 ans 0 for (int k = 0; k < m; k++) {
					ans += nm[i][k] * ml[k][j];
				} int k = 0; int k = 0; k 0 k < m k m k++ k++ k {
					ans += nm[i][k] * ml[k][j];
				} {
					ans += nm[i][k] * ml[k][j];
				} ans += nm[i][k] * ml[k][j] ans nm[i][k] * ml[k][j] nm[i][k] nm[i] nm i k ml[k][j] ml[k] ml k j if(j!=l-1) {
					System.out.print(ans + " ");
				}else {
					System.out.print(ans);
				} j!=l-1 j l-1 l 1 {
					System.out.print(ans + " ");
				} System.out.print(ans + " ") System.out.print System.out System System.out ans + " " ans " " {
					System.out.print(ans);
				} System.out.print(ans) System.out.print System.out System System.out ans System.out.println() System.out.println System.out System System.out 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 nm[][] = new int[n][m];
		int ml[][] = new int[m][l];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				nm[i][j] = sc.nextInt();
			}
		}
		for (int i = 0; i < m; i++) {
			for (int j = 0; j < l; j++) {
				ml[i][j] = sc.nextInt();
			}
		}
		long ans = 0;
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				ans = 0;
				for (int k = 0; k < m; k++) {
					ans += nm[i][k] * ml[k][j];
				}
				if(j!=l-1) {
					System.out.print(ans + " ");
				}else {
					System.out.print(ans);
				}
			}
			System.out.println();
		}
	}
} 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 nm[][] = new int[n][m];
		int ml[][] = new int[m][l];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				nm[i][j] = sc.nextInt();
			}
		}
		for (int i = 0; i < m; i++) {
			for (int j = 0; j < l; j++) {
				ml[i][j] = sc.nextInt();
			}
		}
		long ans = 0;
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				ans = 0;
				for (int k = 0; k < m; k++) {
					ans += nm[i][k] * ml[k][j];
				}
				if(j!=l-1) {
					System.out.print(ans + " ");
				}else {
					System.out.print(ans);
				}
			}
			System.out.println();
		}
	}
} Main
import java.util.Scanner;

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 nm[][] = new int[n][m];
		int ml[][] = new int[m][l];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				nm[i][j] = sc.nextInt();
			}
		}
		for (int i = 0; i < m; i++) {
			for (int j = 0; j < l; j++) {
				ml[i][j] = sc.nextInt();
			}
		}
		long ans = 0;
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				ans = 0;
				for (int k = 0; k < m; k++) {
					ans += nm[i][k] * ml[k][j];
				}
				if(j!=l-1) {
					System.out.print(ans + " ");
				}else {
					System.out.print(ans);
				}
			}
			System.out.println();
		}
	}
}
