import java.util.Scanner;

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[][] a = new int[n][m];
		int[][] b = new int[m][l];
		
		for(int ar = 0; ar < n; ar++) {
			for(int ac = 0; ac < m; ac++) {
				a[ar][ac] = sc.nextInt();
			}
		}
		
		for(int br = 0; br < m; br++) {
			for(int bc = 0; bc < l; bc++) {
				b[br][bc] = sc.nextInt();
			}
		}
		
		for(int cr = 0; cr < n; cr++) {
			for(int cc = 0; cc < l; cc++) {
				long i = 0;
				for(int ca = 0; ca < m; ca++) {
					i += a[cr][ca] * b[ca][cc];
				}
				if(cc != 0) {
					System.out.print(" ");
				}
				System.out.print(i);
			}
			System.out.println();
		}
	}
}
 import java.util.Scanner; Scanner java.util 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[][] a = new int[n][m];
		int[][] b = new int[m][l];
		
		for(int ar = 0; ar < n; ar++) {
			for(int ac = 0; ac < m; ac++) {
				a[ar][ac] = sc.nextInt();
			}
		}
		
		for(int br = 0; br < m; br++) {
			for(int bc = 0; bc < l; bc++) {
				b[br][bc] = sc.nextInt();
			}
		}
		
		for(int cr = 0; cr < n; cr++) {
			for(int cc = 0; cc < l; cc++) {
				long i = 0;
				for(int ca = 0; ca < m; ca++) {
					i += a[cr][ca] * b[ca][cc];
				}
				if(cc != 0) {
					System.out.print(" ");
				}
				System.out.print(i);
			}
			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[][] a = new int[n][m];
		int[][] b = new int[m][l];
		
		for(int ar = 0; ar < n; ar++) {
			for(int ac = 0; ac < m; ac++) {
				a[ar][ac] = sc.nextInt();
			}
		}
		
		for(int br = 0; br < m; br++) {
			for(int bc = 0; bc < l; bc++) {
				b[br][bc] = sc.nextInt();
			}
		}
		
		for(int cr = 0; cr < n; cr++) {
			for(int cc = 0; cc < l; cc++) {
				long i = 0;
				for(int ca = 0; ca < m; ca++) {
					i += a[cr][ca] * b[ca][cc];
				}
				if(cc != 0) {
					System.out.print(" ");
				}
				System.out.print(i);
			}
			System.out.println();
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int l = sc.nextInt();
		
		int[][] a = new int[n][m];
		int[][] b = new int[m][l];
		
		for(int ar = 0; ar < n; ar++) {
			for(int ac = 0; ac < m; ac++) {
				a[ar][ac] = sc.nextInt();
			}
		}
		
		for(int br = 0; br < m; br++) {
			for(int bc = 0; bc < l; bc++) {
				b[br][bc] = sc.nextInt();
			}
		}
		
		for(int cr = 0; cr < n; cr++) {
			for(int cc = 0; cc < l; cc++) {
				long i = 0;
				for(int ca = 0; ca < m; ca++) {
					i += a[cr][ca] * b[ca][cc];
				}
				if(cc != 0) {
					System.out.print(" ");
				}
				System.out.print(i);
			}
			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[][] 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 for(int ar = 0; ar < n; ar++) {
			for(int ac = 0; ac < m; ac++) {
				a[ar][ac] = sc.nextInt();
			}
		} int ar = 0; int ar = 0; ar 0 ar < n ar n ar++ ar++ ar {
			for(int ac = 0; ac < m; ac++) {
				a[ar][ac] = sc.nextInt();
			}
		} {
			for(int ac = 0; ac < m; ac++) {
				a[ar][ac] = sc.nextInt();
			}
		} for(int ac = 0; ac < m; ac++) {
				a[ar][ac] = sc.nextInt();
			} int ac = 0; int ac = 0; ac 0 ac < m ac m ac++ ac++ ac {
				a[ar][ac] = sc.nextInt();
			} {
				a[ar][ac] = sc.nextInt();
			} a[ar][ac] = sc.nextInt() a[ar][ac] a[ar] a ar ac sc.nextInt() sc.nextInt sc for(int br = 0; br < m; br++) {
			for(int bc = 0; bc < l; bc++) {
				b[br][bc] = sc.nextInt();
			}
		} int br = 0; int br = 0; br 0 br < m br m br++ br++ br {
			for(int bc = 0; bc < l; bc++) {
				b[br][bc] = sc.nextInt();
			}
		} {
			for(int bc = 0; bc < l; bc++) {
				b[br][bc] = sc.nextInt();
			}
		} for(int bc = 0; bc < l; bc++) {
				b[br][bc] = sc.nextInt();
			} int bc = 0; int bc = 0; bc 0 bc < l bc l bc++ bc++ bc {
				b[br][bc] = sc.nextInt();
			} {
				b[br][bc] = sc.nextInt();
			} b[br][bc] = sc.nextInt() b[br][bc] b[br] b br bc sc.nextInt() sc.nextInt sc for(int cr = 0; cr < n; cr++) {
			for(int cc = 0; cc < l; cc++) {
				long i = 0;
				for(int ca = 0; ca < m; ca++) {
					i += a[cr][ca] * b[ca][cc];
				}
				if(cc != 0) {
					System.out.print(" ");
				}
				System.out.print(i);
			}
			System.out.println();
		} int cr = 0; int cr = 0; cr 0 cr < n cr n cr++ cr++ cr {
			for(int cc = 0; cc < l; cc++) {
				long i = 0;
				for(int ca = 0; ca < m; ca++) {
					i += a[cr][ca] * b[ca][cc];
				}
				if(cc != 0) {
					System.out.print(" ");
				}
				System.out.print(i);
			}
			System.out.println();
		} {
			for(int cc = 0; cc < l; cc++) {
				long i = 0;
				for(int ca = 0; ca < m; ca++) {
					i += a[cr][ca] * b[ca][cc];
				}
				if(cc != 0) {
					System.out.print(" ");
				}
				System.out.print(i);
			}
			System.out.println();
		} for(int cc = 0; cc < l; cc++) {
				long i = 0;
				for(int ca = 0; ca < m; ca++) {
					i += a[cr][ca] * b[ca][cc];
				}
				if(cc != 0) {
					System.out.print(" ");
				}
				System.out.print(i);
			} int cc = 0; int cc = 0; cc 0 cc < l cc l cc++ cc++ cc {
				long i = 0;
				for(int ca = 0; ca < m; ca++) {
					i += a[cr][ca] * b[ca][cc];
				}
				if(cc != 0) {
					System.out.print(" ");
				}
				System.out.print(i);
			} {
				long i = 0;
				for(int ca = 0; ca < m; ca++) {
					i += a[cr][ca] * b[ca][cc];
				}
				if(cc != 0) {
					System.out.print(" ");
				}
				System.out.print(i);
			} long i = 0; i 0 for(int ca = 0; ca < m; ca++) {
					i += a[cr][ca] * b[ca][cc];
				} int ca = 0; int ca = 0; ca 0 ca < m ca m ca++ ca++ ca {
					i += a[cr][ca] * b[ca][cc];
				} {
					i += a[cr][ca] * b[ca][cc];
				} i += a[cr][ca] * b[ca][cc] i a[cr][ca] * b[ca][cc] a[cr][ca] a[cr] a cr ca b[ca][cc] b[ca] b ca cc if(cc != 0) {
					System.out.print(" ");
				} cc != 0 cc 0 {
					System.out.print(" ");
				} System.out.print(" ") System.out.print System.out System System.out " " System.out.print(i) System.out.print System.out System System.out i System.out.println() System.out.println System.out System System.out String args[] args
import java.util.Scanner;

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[][] a = new int[n][m];
		int[][] b = new int[m][l];
		
		for(int ar = 0; ar < n; ar++) {
			for(int ac = 0; ac < m; ac++) {
				a[ar][ac] = sc.nextInt();
			}
		}
		
		for(int br = 0; br < m; br++) {
			for(int bc = 0; bc < l; bc++) {
				b[br][bc] = sc.nextInt();
			}
		}
		
		for(int cr = 0; cr < n; cr++) {
			for(int cc = 0; cc < l; cc++) {
				long i = 0;
				for(int ca = 0; ca < m; ca++) {
					i += a[cr][ca] * b[ca][cc];
				}
				if(cc != 0) {
					System.out.print(" ");
				}
				System.out.print(i);
			}
			System.out.println();
		}
	}
}

