import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		int n = stdIn.nextInt();
		int m = stdIn.nextInt();
		int l = stdIn.nextInt();
		
		long[][] A = new long[n][m];
		long[][] B = new long[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] = stdIn.nextInt();
			}
		}
		
		for(int i = 0; i < m; i++) {
			for(int j = 0; j < l; j++) {
				B[i][j] = stdIn.nextInt();
			}
		}
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < l; j++) {
				for(int k = 0; k < m; k++) {
					C[i][j] += A[i][k] * B[k][j];
				}
			}
		}
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < l-1; j++) {
				System.out.print(C[i][j] + " ");
			}
			System.out.println(C[i][l-1]);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		int n = stdIn.nextInt();
		int m = stdIn.nextInt();
		int l = stdIn.nextInt();
		
		long[][] A = new long[n][m];
		long[][] B = new long[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] = stdIn.nextInt();
			}
		}
		
		for(int i = 0; i < m; i++) {
			for(int j = 0; j < l; j++) {
				B[i][j] = stdIn.nextInt();
			}
		}
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < l; j++) {
				for(int k = 0; k < m; k++) {
					C[i][j] += A[i][k] * B[k][j];
				}
			}
		}
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < l-1; j++) {
				System.out.print(C[i][j] + " ");
			}
			System.out.println(C[i][l-1]);
		}
	}
} Main public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		int n = stdIn.nextInt();
		int m = stdIn.nextInt();
		int l = stdIn.nextInt();
		
		long[][] A = new long[n][m];
		long[][] B = new long[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] = stdIn.nextInt();
			}
		}
		
		for(int i = 0; i < m; i++) {
			for(int j = 0; j < l; j++) {
				B[i][j] = stdIn.nextInt();
			}
		}
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < l; j++) {
				for(int k = 0; k < m; k++) {
					C[i][j] += A[i][k] * B[k][j];
				}
			}
		}
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < l-1; j++) {
				System.out.print(C[i][j] + " ");
			}
			System.out.println(C[i][l-1]);
		}
	} main {
		Scanner stdIn = new Scanner(System.in);
		
		int n = stdIn.nextInt();
		int m = stdIn.nextInt();
		int l = stdIn.nextInt();
		
		long[][] A = new long[n][m];
		long[][] B = new long[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] = stdIn.nextInt();
			}
		}
		
		for(int i = 0; i < m; i++) {
			for(int j = 0; j < l; j++) {
				B[i][j] = stdIn.nextInt();
			}
		}
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < l; j++) {
				for(int k = 0; k < m; k++) {
					C[i][j] += A[i][k] * B[k][j];
				}
			}
		}
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < l-1; j++) {
				System.out.print(C[i][j] + " ");
			}
			System.out.println(C[i][l-1]);
		}
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int n = stdIn.nextInt(); n stdIn.nextInt() stdIn.nextInt stdIn int m = stdIn.nextInt(); m stdIn.nextInt() stdIn.nextInt stdIn int l = stdIn.nextInt(); l stdIn.nextInt() stdIn.nextInt stdIn long[][] A = new long[n][m]; A new long[n][m] n m long[][] B = new long[m][l]; B new long[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] = stdIn.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] = stdIn.nextInt();
			}
		} {
			for(int j = 0; j < m; j++) {
				A[i][j] = stdIn.nextInt();
			}
		} for(int j = 0; j < m; j++) {
				A[i][j] = stdIn.nextInt();
			} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
				A[i][j] = stdIn.nextInt();
			} {
				A[i][j] = stdIn.nextInt();
			} A[i][j] = stdIn.nextInt() A[i][j] A[i] A i j stdIn.nextInt() stdIn.nextInt stdIn for(int i = 0; i < m; i++) {
			for(int j = 0; j < l; j++) {
				B[i][j] = stdIn.nextInt();
			}
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
			for(int j = 0; j < l; j++) {
				B[i][j] = stdIn.nextInt();
			}
		} {
			for(int j = 0; j < l; j++) {
				B[i][j] = stdIn.nextInt();
			}
		} for(int j = 0; j < l; j++) {
				B[i][j] = stdIn.nextInt();
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				B[i][j] = stdIn.nextInt();
			} {
				B[i][j] = stdIn.nextInt();
			} B[i][j] = stdIn.nextInt() B[i][j] B[i] B i j stdIn.nextInt() stdIn.nextInt stdIn for(int i = 0; i < n; i++) {
			for(int j = 0; j < l; j++) {
				for(int k = 0; k < m; k++) {
					C[i][j] += A[i][k] * B[k][j];
				}
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			for(int j = 0; j < l; j++) {
				for(int k = 0; k < m; k++) {
					C[i][j] += A[i][k] * B[k][j];
				}
			}
		} {
			for(int j = 0; j < l; j++) {
				for(int k = 0; k < m; k++) {
					C[i][j] += A[i][k] * B[k][j];
				}
			}
		} for(int j = 0; j < l; j++) {
				for(int k = 0; k < m; k++) {
					C[i][j] += A[i][k] * B[k][j];
				}
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				for(int k = 0; k < m; k++) {
					C[i][j] += A[i][k] * B[k][j];
				}
			} {
				for(int k = 0; k < m; k++) {
					C[i][j] += A[i][k] * B[k][j];
				}
			} for(int k = 0; k < m; k++) {
					C[i][j] += A[i][k] * B[k][j];
				} int k = 0; int k = 0; k 0 k < m k m k++ k++ k {
					C[i][j] += A[i][k] * B[k][j];
				} {
					C[i][j] += A[i][k] * B[k][j];
				} C[i][j] += A[i][k] * B[k][j] C[i][j] C[i] C i j A[i][k] * B[k][j] A[i][k] A[i] A i k B[k][j] B[k] B k j for(int i = 0; i < n; i++) {
			for(int j = 0; j < l-1; j++) {
				System.out.print(C[i][j] + " ");
			}
			System.out.println(C[i][l-1]);
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			for(int j = 0; j < l-1; j++) {
				System.out.print(C[i][j] + " ");
			}
			System.out.println(C[i][l-1]);
		} {
			for(int j = 0; j < l-1; j++) {
				System.out.print(C[i][j] + " ");
			}
			System.out.println(C[i][l-1]);
		} for(int j = 0; j < l-1; j++) {
				System.out.print(C[i][j] + " ");
			} int j = 0; int j = 0; j 0 j < l-1 j l-1 l 1 j++ j++ j {
				System.out.print(C[i][j] + " ");
			} {
				System.out.print(C[i][j] + " ");
			} System.out.print(C[i][j] + " ") System.out.print System.out System System.out C[i][j] + " " C[i][j] C[i] C i j " " System.out.println(C[i][l-1]) System.out.println System.out System System.out C[i][l-1] C[i] C i l-1 l 1 String[] args args public class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		int n = stdIn.nextInt();
		int m = stdIn.nextInt();
		int l = stdIn.nextInt();
		
		long[][] A = new long[n][m];
		long[][] B = new long[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] = stdIn.nextInt();
			}
		}
		
		for(int i = 0; i < m; i++) {
			for(int j = 0; j < l; j++) {
				B[i][j] = stdIn.nextInt();
			}
		}
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < l; j++) {
				for(int k = 0; k < m; k++) {
					C[i][j] += A[i][k] * B[k][j];
				}
			}
		}
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < l-1; j++) {
				System.out.print(C[i][j] + " ");
			}
			System.out.println(C[i][l-1]);
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		int n = stdIn.nextInt();
		int m = stdIn.nextInt();
		int l = stdIn.nextInt();
		
		long[][] A = new long[n][m];
		long[][] B = new long[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] = stdIn.nextInt();
			}
		}
		
		for(int i = 0; i < m; i++) {
			for(int j = 0; j < l; j++) {
				B[i][j] = stdIn.nextInt();
			}
		}
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < l; j++) {
				for(int k = 0; k < m; k++) {
					C[i][j] += A[i][k] * B[k][j];
				}
			}
		}
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < l-1; j++) {
				System.out.print(C[i][j] + " ");
			}
			System.out.println(C[i][l-1]);
		}
	}
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		int n = stdIn.nextInt();
		int m = stdIn.nextInt();
		int l = stdIn.nextInt();
		
		long[][] A = new long[n][m];
		long[][] B = new long[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] = stdIn.nextInt();
			}
		}
		
		for(int i = 0; i < m; i++) {
			for(int j = 0; j < l; j++) {
				B[i][j] = stdIn.nextInt();
			}
		}
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < l; j++) {
				for(int k = 0; k < m; k++) {
					C[i][j] += A[i][k] * B[k][j];
				}
			}
		}
		
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < l-1; j++) {
				System.out.print(C[i][j] + " ");
			}
			System.out.println(C[i][l-1]);
		}
	}
}