import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();
		String[] elm = br.readLine().split(" ");
		int n = Integer.parseInt(elm[0]);
		int m = Integer.parseInt(elm[1]);
		int l = Integer.parseInt(elm[2]);
		int[][] mata = new int[n][m];
		int[][] matb = new int[m][l];
		long[][] ans = new long[n][l];
		for(int i = 0; i < n ; i++){
			String[] line = br.readLine().split(" ");
			for(int j = 0; j < m ; j++){
				mata[i][j] = Integer.parseInt(line[j]);
			}
		}
		for(int i = 0; i < m ; i++){
			String[] line = br.readLine().split(" ");
			for(int j = 0; j < l ; j++){
				matb[i][j] = Integer.parseInt(line[j]);
			}
		}
		for(int i = 0; i < n ; i++){
			for(int j = 0; j < l ; j++){
				for(int k = 0; k < m; k++){
					ans[i][j] += mata[i][k] * matb[k][j];
				}
				sb.append(ans[i][j]);
				if( j != l-1) sb.append(" ");
				//System.out.print(ans[i][j]+" ");
			}
			sb.append("\n");
			//System.out.println();
		}
		System.out.print(sb);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.IOException; IOException java.io public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();
		String[] elm = br.readLine().split(" ");
		int n = Integer.parseInt(elm[0]);
		int m = Integer.parseInt(elm[1]);
		int l = Integer.parseInt(elm[2]);
		int[][] mata = new int[n][m];
		int[][] matb = new int[m][l];
		long[][] ans = new long[n][l];
		for(int i = 0; i < n ; i++){
			String[] line = br.readLine().split(" ");
			for(int j = 0; j < m ; j++){
				mata[i][j] = Integer.parseInt(line[j]);
			}
		}
		for(int i = 0; i < m ; i++){
			String[] line = br.readLine().split(" ");
			for(int j = 0; j < l ; j++){
				matb[i][j] = Integer.parseInt(line[j]);
			}
		}
		for(int i = 0; i < n ; i++){
			for(int j = 0; j < l ; j++){
				for(int k = 0; k < m; k++){
					ans[i][j] += mata[i][k] * matb[k][j];
				}
				sb.append(ans[i][j]);
				if( j != l-1) sb.append(" ");
				//System.out.print(ans[i][j]+" ");
			}
			sb.append("\n");
			//System.out.println();
		}
		System.out.print(sb);
	}
} Main public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();
		String[] elm = br.readLine().split(" ");
		int n = Integer.parseInt(elm[0]);
		int m = Integer.parseInt(elm[1]);
		int l = Integer.parseInt(elm[2]);
		int[][] mata = new int[n][m];
		int[][] matb = new int[m][l];
		long[][] ans = new long[n][l];
		for(int i = 0; i < n ; i++){
			String[] line = br.readLine().split(" ");
			for(int j = 0; j < m ; j++){
				mata[i][j] = Integer.parseInt(line[j]);
			}
		}
		for(int i = 0; i < m ; i++){
			String[] line = br.readLine().split(" ");
			for(int j = 0; j < l ; j++){
				matb[i][j] = Integer.parseInt(line[j]);
			}
		}
		for(int i = 0; i < n ; i++){
			for(int j = 0; j < l ; j++){
				for(int k = 0; k < m; k++){
					ans[i][j] += mata[i][k] * matb[k][j];
				}
				sb.append(ans[i][j]);
				if( j != l-1) sb.append(" ");
				//System.out.print(ans[i][j]+" ");
			}
			sb.append("\n");
			//System.out.println();
		}
		System.out.print(sb);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();
		String[] elm = br.readLine().split(" ");
		int n = Integer.parseInt(elm[0]);
		int m = Integer.parseInt(elm[1]);
		int l = Integer.parseInt(elm[2]);
		int[][] mata = new int[n][m];
		int[][] matb = new int[m][l];
		long[][] ans = new long[n][l];
		for(int i = 0; i < n ; i++){
			String[] line = br.readLine().split(" ");
			for(int j = 0; j < m ; j++){
				mata[i][j] = Integer.parseInt(line[j]);
			}
		}
		for(int i = 0; i < m ; i++){
			String[] line = br.readLine().split(" ");
			for(int j = 0; j < l ; j++){
				matb[i][j] = Integer.parseInt(line[j]);
			}
		}
		for(int i = 0; i < n ; i++){
			for(int j = 0; j < l ; j++){
				for(int k = 0; k < m; k++){
					ans[i][j] += mata[i][k] * matb[k][j];
				}
				sb.append(ans[i][j]);
				if( j != l-1) sb.append(" ");
				//System.out.print(ans[i][j]+" ");
			}
			sb.append("\n");
			//System.out.println();
		}
		System.out.print(sb);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringBuilder sb = new StringBuilder(); sb new StringBuilder() String[] elm = br.readLine().split(" "); elm br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int n = Integer.parseInt(elm[0]); n Integer.parseInt(elm[0]) Integer.parseInt Integer elm[0] elm 0 int m = Integer.parseInt(elm[1]); m Integer.parseInt(elm[1]) Integer.parseInt Integer elm[1] elm 1 int l = Integer.parseInt(elm[2]); l Integer.parseInt(elm[2]) Integer.parseInt Integer elm[2] elm 2 int[][] mata = new int[n][m]; mata new int[n][m] n m int[][] matb = new int[m][l]; matb new int[m][l] m l long[][] ans = new long[n][l]; ans new long[n][l] n l for(int i = 0; i < n ; i++){
			String[] line = br.readLine().split(" ");
			for(int j = 0; j < m ; j++){
				mata[i][j] = Integer.parseInt(line[j]);
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			String[] line = br.readLine().split(" ");
			for(int j = 0; j < m ; j++){
				mata[i][j] = Integer.parseInt(line[j]);
			}
		} {
			String[] line = br.readLine().split(" ");
			for(int j = 0; j < m ; j++){
				mata[i][j] = Integer.parseInt(line[j]);
			}
		} String[] line = br.readLine().split(" "); line br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " for(int j = 0; j < m ; j++){
				mata[i][j] = Integer.parseInt(line[j]);
			} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
				mata[i][j] = Integer.parseInt(line[j]);
			} {
				mata[i][j] = Integer.parseInt(line[j]);
			} mata[i][j] = Integer.parseInt(line[j]) mata[i][j] mata[i] mata i j Integer.parseInt(line[j]) Integer.parseInt Integer line[j] line j for(int i = 0; i < m ; i++){
			String[] line = br.readLine().split(" ");
			for(int j = 0; j < l ; j++){
				matb[i][j] = Integer.parseInt(line[j]);
			}
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
			String[] line = br.readLine().split(" ");
			for(int j = 0; j < l ; j++){
				matb[i][j] = Integer.parseInt(line[j]);
			}
		} {
			String[] line = br.readLine().split(" ");
			for(int j = 0; j < l ; j++){
				matb[i][j] = Integer.parseInt(line[j]);
			}
		} String[] line = br.readLine().split(" "); line br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " for(int j = 0; j < l ; j++){
				matb[i][j] = Integer.parseInt(line[j]);
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				matb[i][j] = Integer.parseInt(line[j]);
			} {
				matb[i][j] = Integer.parseInt(line[j]);
			} matb[i][j] = Integer.parseInt(line[j]) matb[i][j] matb[i] matb i j Integer.parseInt(line[j]) Integer.parseInt Integer line[j] line j for(int i = 0; i < n ; i++){
			for(int j = 0; j < l ; j++){
				for(int k = 0; k < m; k++){
					ans[i][j] += mata[i][k] * matb[k][j];
				}
				sb.append(ans[i][j]);
				if( j != l-1) sb.append(" ");
				//System.out.print(ans[i][j]+" ");
			}
			sb.append("\n");
			//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++){
				for(int k = 0; k < m; k++){
					ans[i][j] += mata[i][k] * matb[k][j];
				}
				sb.append(ans[i][j]);
				if( j != l-1) sb.append(" ");
				//System.out.print(ans[i][j]+" ");
			}
			sb.append("\n");
			//System.out.println();
		} {
			for(int j = 0; j < l ; j++){
				for(int k = 0; k < m; k++){
					ans[i][j] += mata[i][k] * matb[k][j];
				}
				sb.append(ans[i][j]);
				if( j != l-1) sb.append(" ");
				//System.out.print(ans[i][j]+" ");
			}
			sb.append("\n");
			//System.out.println();
		} for(int j = 0; j < l ; j++){
				for(int k = 0; k < m; k++){
					ans[i][j] += mata[i][k] * matb[k][j];
				}
				sb.append(ans[i][j]);
				if( j != l-1) sb.append(" ");
				//System.out.print(ans[i][j]+" ");
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				for(int k = 0; k < m; k++){
					ans[i][j] += mata[i][k] * matb[k][j];
				}
				sb.append(ans[i][j]);
				if( j != l-1) sb.append(" ");
				//System.out.print(ans[i][j]+" ");
			} {
				for(int k = 0; k < m; k++){
					ans[i][j] += mata[i][k] * matb[k][j];
				}
				sb.append(ans[i][j]);
				if( j != l-1) sb.append(" ");
				//System.out.print(ans[i][j]+" ");
			} for(int k = 0; k < m; k++){
					ans[i][j] += mata[i][k] * matb[k][j];
				} int k = 0; int k = 0; k 0 k < m k m k++ k++ k {
					ans[i][j] += mata[i][k] * matb[k][j];
				} {
					ans[i][j] += mata[i][k] * matb[k][j];
				} ans[i][j] += mata[i][k] * matb[k][j] ans[i][j] ans[i] ans i j mata[i][k] * matb[k][j] mata[i][k] mata[i] mata i k matb[k][j] matb[k] matb k j sb.append(ans[i][j]) sb.append sb ans[i][j] ans[i] ans i j if( j != l-1) sb.append(" "); j != l-1 j l-1 l 1 sb.append(" ") sb.append sb " " sb.append("\n") sb.append sb "\n" System.out.print(sb) System.out.print System.out System System.out sb String[] args args public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();
		String[] elm = br.readLine().split(" ");
		int n = Integer.parseInt(elm[0]);
		int m = Integer.parseInt(elm[1]);
		int l = Integer.parseInt(elm[2]);
		int[][] mata = new int[n][m];
		int[][] matb = new int[m][l];
		long[][] ans = new long[n][l];
		for(int i = 0; i < n ; i++){
			String[] line = br.readLine().split(" ");
			for(int j = 0; j < m ; j++){
				mata[i][j] = Integer.parseInt(line[j]);
			}
		}
		for(int i = 0; i < m ; i++){
			String[] line = br.readLine().split(" ");
			for(int j = 0; j < l ; j++){
				matb[i][j] = Integer.parseInt(line[j]);
			}
		}
		for(int i = 0; i < n ; i++){
			for(int j = 0; j < l ; j++){
				for(int k = 0; k < m; k++){
					ans[i][j] += mata[i][k] * matb[k][j];
				}
				sb.append(ans[i][j]);
				if( j != l-1) sb.append(" ");
				//System.out.print(ans[i][j]+" ");
			}
			sb.append("\n");
			//System.out.println();
		}
		System.out.print(sb);
	}
} public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();
		String[] elm = br.readLine().split(" ");
		int n = Integer.parseInt(elm[0]);
		int m = Integer.parseInt(elm[1]);
		int l = Integer.parseInt(elm[2]);
		int[][] mata = new int[n][m];
		int[][] matb = new int[m][l];
		long[][] ans = new long[n][l];
		for(int i = 0; i < n ; i++){
			String[] line = br.readLine().split(" ");
			for(int j = 0; j < m ; j++){
				mata[i][j] = Integer.parseInt(line[j]);
			}
		}
		for(int i = 0; i < m ; i++){
			String[] line = br.readLine().split(" ");
			for(int j = 0; j < l ; j++){
				matb[i][j] = Integer.parseInt(line[j]);
			}
		}
		for(int i = 0; i < n ; i++){
			for(int j = 0; j < l ; j++){
				for(int k = 0; k < m; k++){
					ans[i][j] += mata[i][k] * matb[k][j];
				}
				sb.append(ans[i][j]);
				if( j != l-1) sb.append(" ");
				//System.out.print(ans[i][j]+" ");
			}
			sb.append("\n");
			//System.out.println();
		}
		System.out.print(sb);
	}
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();
		String[] elm = br.readLine().split(" ");
		int n = Integer.parseInt(elm[0]);
		int m = Integer.parseInt(elm[1]);
		int l = Integer.parseInt(elm[2]);
		int[][] mata = new int[n][m];
		int[][] matb = new int[m][l];
		long[][] ans = new long[n][l];
		for(int i = 0; i < n ; i++){
			String[] line = br.readLine().split(" ");
			for(int j = 0; j < m ; j++){
				mata[i][j] = Integer.parseInt(line[j]);
			}
		}
		for(int i = 0; i < m ; i++){
			String[] line = br.readLine().split(" ");
			for(int j = 0; j < l ; j++){
				matb[i][j] = Integer.parseInt(line[j]);
			}
		}
		for(int i = 0; i < n ; i++){
			for(int j = 0; j < l ; j++){
				for(int k = 0; k < m; k++){
					ans[i][j] += mata[i][k] * matb[k][j];
				}
				sb.append(ans[i][j]);
				if( j != l-1) sb.append(" ");
				//System.out.print(ans[i][j]+" ");
			}
			sb.append("\n");
			//System.out.println();
		}
		System.out.print(sb);
	}
}