import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner std = new Scanner(System.in);
		int n = Integer.parseInt(std.next());
		int m = Integer.parseInt(std.next());
		int l = Integer.parseInt(std.next());

		int mat_a[][] = new int[n][m];
		for(int i=0; i<n; i++){
			for (int j=0; j<m; j++){
				mat_a[i][j] = Integer.parseInt(std.next());
			}
		}

		int mat_b[][] = new int[m][l];
		for(int j=0; j<m; j++){
			for (int k=0; k<l; k++){
				mat_b[j][k] = Integer.parseInt(std.next());
			}
		}

//		int mat_c[][] = new int[n][l];
		for(int i=0; i<n; i++){
			String line = "";
			for (int k=0; k<l; k++){
				long sum = 0;
				for(int j=0; j<m; j++){
					sum += mat_a[i][j] * mat_b[j][k];
				}
				if(k!=0){line += " ";}
				line += sum;
			}
			System.out.println(line);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		Scanner std = new Scanner(System.in);
		int n = Integer.parseInt(std.next());
		int m = Integer.parseInt(std.next());
		int l = Integer.parseInt(std.next());

		int mat_a[][] = new int[n][m];
		for(int i=0; i<n; i++){
			for (int j=0; j<m; j++){
				mat_a[i][j] = Integer.parseInt(std.next());
			}
		}

		int mat_b[][] = new int[m][l];
		for(int j=0; j<m; j++){
			for (int k=0; k<l; k++){
				mat_b[j][k] = Integer.parseInt(std.next());
			}
		}

//		int mat_c[][] = new int[n][l];
		for(int i=0; i<n; i++){
			String line = "";
			for (int k=0; k<l; k++){
				long sum = 0;
				for(int j=0; j<m; j++){
					sum += mat_a[i][j] * mat_b[j][k];
				}
				if(k!=0){line += " ";}
				line += sum;
			}
			System.out.println(line);
		}
	}
} Main public static void main(String[] args){
		Scanner std = new Scanner(System.in);
		int n = Integer.parseInt(std.next());
		int m = Integer.parseInt(std.next());
		int l = Integer.parseInt(std.next());

		int mat_a[][] = new int[n][m];
		for(int i=0; i<n; i++){
			for (int j=0; j<m; j++){
				mat_a[i][j] = Integer.parseInt(std.next());
			}
		}

		int mat_b[][] = new int[m][l];
		for(int j=0; j<m; j++){
			for (int k=0; k<l; k++){
				mat_b[j][k] = Integer.parseInt(std.next());
			}
		}

//		int mat_c[][] = new int[n][l];
		for(int i=0; i<n; i++){
			String line = "";
			for (int k=0; k<l; k++){
				long sum = 0;
				for(int j=0; j<m; j++){
					sum += mat_a[i][j] * mat_b[j][k];
				}
				if(k!=0){line += " ";}
				line += sum;
			}
			System.out.println(line);
		}
	} main {
		Scanner std = new Scanner(System.in);
		int n = Integer.parseInt(std.next());
		int m = Integer.parseInt(std.next());
		int l = Integer.parseInt(std.next());

		int mat_a[][] = new int[n][m];
		for(int i=0; i<n; i++){
			for (int j=0; j<m; j++){
				mat_a[i][j] = Integer.parseInt(std.next());
			}
		}

		int mat_b[][] = new int[m][l];
		for(int j=0; j<m; j++){
			for (int k=0; k<l; k++){
				mat_b[j][k] = Integer.parseInt(std.next());
			}
		}

//		int mat_c[][] = new int[n][l];
		for(int i=0; i<n; i++){
			String line = "";
			for (int k=0; k<l; k++){
				long sum = 0;
				for(int j=0; j<m; j++){
					sum += mat_a[i][j] * mat_b[j][k];
				}
				if(k!=0){line += " ";}
				line += sum;
			}
			System.out.println(line);
		}
	} Scanner std = new Scanner(System.in); std new Scanner(System.in) int n = Integer.parseInt(std.next()); n Integer.parseInt(std.next()) Integer.parseInt Integer std.next() std.next std int m = Integer.parseInt(std.next()); m Integer.parseInt(std.next()) Integer.parseInt Integer std.next() std.next std int l = Integer.parseInt(std.next()); l Integer.parseInt(std.next()) Integer.parseInt Integer std.next() std.next std int mat_a[][] = new int[n][m]; mat_a new int[n][m] n m for(int i=0; i<n; i++){
			for (int j=0; j<m; j++){
				mat_a[i][j] = Integer.parseInt(std.next());
			}
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			for (int j=0; j<m; j++){
				mat_a[i][j] = Integer.parseInt(std.next());
			}
		} {
			for (int j=0; j<m; j++){
				mat_a[i][j] = Integer.parseInt(std.next());
			}
		} for (int j=0; j<m; j++){
				mat_a[i][j] = Integer.parseInt(std.next());
			} int j=0; int j=0; j 0 j<m j m j++ j++ j {
				mat_a[i][j] = Integer.parseInt(std.next());
			} {
				mat_a[i][j] = Integer.parseInt(std.next());
			} mat_a[i][j] = Integer.parseInt(std.next()) mat_a[i][j] mat_a[i] mat_a i j Integer.parseInt(std.next()) Integer.parseInt Integer std.next() std.next std int mat_b[][] = new int[m][l]; mat_b new int[m][l] m l for(int j=0; j<m; j++){
			for (int k=0; k<l; k++){
				mat_b[j][k] = Integer.parseInt(std.next());
			}
		} int j=0; int j=0; j 0 j<m j m j++ j++ j {
			for (int k=0; k<l; k++){
				mat_b[j][k] = Integer.parseInt(std.next());
			}
		} {
			for (int k=0; k<l; k++){
				mat_b[j][k] = Integer.parseInt(std.next());
			}
		} for (int k=0; k<l; k++){
				mat_b[j][k] = Integer.parseInt(std.next());
			} int k=0; int k=0; k 0 k<l k l k++ k++ k {
				mat_b[j][k] = Integer.parseInt(std.next());
			} {
				mat_b[j][k] = Integer.parseInt(std.next());
			} mat_b[j][k] = Integer.parseInt(std.next()) mat_b[j][k] mat_b[j] mat_b j k Integer.parseInt(std.next()) Integer.parseInt Integer std.next() std.next std for(int i=0; i<n; i++){
			String line = "";
			for (int k=0; k<l; k++){
				long sum = 0;
				for(int j=0; j<m; j++){
					sum += mat_a[i][j] * mat_b[j][k];
				}
				if(k!=0){line += " ";}
				line += sum;
			}
			System.out.println(line);
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			String line = "";
			for (int k=0; k<l; k++){
				long sum = 0;
				for(int j=0; j<m; j++){
					sum += mat_a[i][j] * mat_b[j][k];
				}
				if(k!=0){line += " ";}
				line += sum;
			}
			System.out.println(line);
		} {
			String line = "";
			for (int k=0; k<l; k++){
				long sum = 0;
				for(int j=0; j<m; j++){
					sum += mat_a[i][j] * mat_b[j][k];
				}
				if(k!=0){line += " ";}
				line += sum;
			}
			System.out.println(line);
		} String line = ""; line "" for (int k=0; k<l; k++){
				long sum = 0;
				for(int j=0; j<m; j++){
					sum += mat_a[i][j] * mat_b[j][k];
				}
				if(k!=0){line += " ";}
				line += sum;
			} int k=0; int k=0; k 0 k<l k l k++ k++ k {
				long sum = 0;
				for(int j=0; j<m; j++){
					sum += mat_a[i][j] * mat_b[j][k];
				}
				if(k!=0){line += " ";}
				line += sum;
			} {
				long sum = 0;
				for(int j=0; j<m; j++){
					sum += mat_a[i][j] * mat_b[j][k];
				}
				if(k!=0){line += " ";}
				line += sum;
			} long sum = 0; sum 0 for(int j=0; j<m; j++){
					sum += mat_a[i][j] * mat_b[j][k];
				} int j=0; int j=0; j 0 j<m j m j++ j++ j {
					sum += mat_a[i][j] * mat_b[j][k];
				} {
					sum += mat_a[i][j] * mat_b[j][k];
				} sum += mat_a[i][j] * mat_b[j][k] sum mat_a[i][j] * mat_b[j][k] mat_a[i][j] mat_a[i] mat_a i j mat_b[j][k] mat_b[j] mat_b j k if(k!=0){line += " ";} k!=0 k 0 {line += " ";} line += " " line " " line += sum line sum System.out.println(line) System.out.println System.out System System.out line String[] args args public class Main {
	public static void main(String[] args){
		Scanner std = new Scanner(System.in);
		int n = Integer.parseInt(std.next());
		int m = Integer.parseInt(std.next());
		int l = Integer.parseInt(std.next());

		int mat_a[][] = new int[n][m];
		for(int i=0; i<n; i++){
			for (int j=0; j<m; j++){
				mat_a[i][j] = Integer.parseInt(std.next());
			}
		}

		int mat_b[][] = new int[m][l];
		for(int j=0; j<m; j++){
			for (int k=0; k<l; k++){
				mat_b[j][k] = Integer.parseInt(std.next());
			}
		}

//		int mat_c[][] = new int[n][l];
		for(int i=0; i<n; i++){
			String line = "";
			for (int k=0; k<l; k++){
				long sum = 0;
				for(int j=0; j<m; j++){
					sum += mat_a[i][j] * mat_b[j][k];
				}
				if(k!=0){line += " ";}
				line += sum;
			}
			System.out.println(line);
		}
	}
} public class Main {
	public static void main(String[] args){
		Scanner std = new Scanner(System.in);
		int n = Integer.parseInt(std.next());
		int m = Integer.parseInt(std.next());
		int l = Integer.parseInt(std.next());

		int mat_a[][] = new int[n][m];
		for(int i=0; i<n; i++){
			for (int j=0; j<m; j++){
				mat_a[i][j] = Integer.parseInt(std.next());
			}
		}

		int mat_b[][] = new int[m][l];
		for(int j=0; j<m; j++){
			for (int k=0; k<l; k++){
				mat_b[j][k] = Integer.parseInt(std.next());
			}
		}

//		int mat_c[][] = new int[n][l];
		for(int i=0; i<n; i++){
			String line = "";
			for (int k=0; k<l; k++){
				long sum = 0;
				for(int j=0; j<m; j++){
					sum += mat_a[i][j] * mat_b[j][k];
				}
				if(k!=0){line += " ";}
				line += sum;
			}
			System.out.println(line);
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner std = new Scanner(System.in);
		int n = Integer.parseInt(std.next());
		int m = Integer.parseInt(std.next());
		int l = Integer.parseInt(std.next());

		int mat_a[][] = new int[n][m];
		for(int i=0; i<n; i++){
			for (int j=0; j<m; j++){
				mat_a[i][j] = Integer.parseInt(std.next());
			}
		}

		int mat_b[][] = new int[m][l];
		for(int j=0; j<m; j++){
			for (int k=0; k<l; k++){
				mat_b[j][k] = Integer.parseInt(std.next());
			}
		}

//		int mat_c[][] = new int[n][l];
		for(int i=0; i<n; i++){
			String line = "";
			for (int k=0; k<l; k++){
				long sum = 0;
				for(int j=0; j<m; j++){
					sum += mat_a[i][j] * mat_b[j][k];
				}
				if(k!=0){line += " ";}
				line += sum;
			}
			System.out.println(line);
		}
	}
}