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();
		long cal = 0;
		long[][] mt1 = new long[n][m];
		long[][] mt2 = new long[m][l];
		long[][] mt3 = new long[n][l];

		for(int i = 0; i < n; i++) {
			for(int j = 0; j < m; j++) {
				mt1[i][j] = sc.nextInt();
			}
		}

		for(int i = 0; i < m; i++) {
			for(int j = 0; j < l; j++) {
				mt2[i][j] = sc.nextInt();
			}
		}

		for(int i = 0; i < n; i ++) {
			for(int j = 0; j < l; j++) {
				for(int k = 0; k < m ; k++) {
					cal += mt1[i][k] * mt2[k][j];
				}
				mt3[i][j] = cal;
				cal = 0;
			}
		}

		 for(int i = 0; i < n ; i++) {
			 for(int j = 0; j < l; j++) {
				 if(j != l-1) {
					 System.out.print(mt3[i][j] + " ");
				 }else {
					 System.out.println(mt3[i][j]);
				 }
			 }
		 }
	}
}
 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();
		long cal = 0;
		long[][] mt1 = new long[n][m];
		long[][] mt2 = new long[m][l];
		long[][] mt3 = new long[n][l];

		for(int i = 0; i < n; i++) {
			for(int j = 0; j < m; j++) {
				mt1[i][j] = sc.nextInt();
			}
		}

		for(int i = 0; i < m; i++) {
			for(int j = 0; j < l; j++) {
				mt2[i][j] = sc.nextInt();
			}
		}

		for(int i = 0; i < n; i ++) {
			for(int j = 0; j < l; j++) {
				for(int k = 0; k < m ; k++) {
					cal += mt1[i][k] * mt2[k][j];
				}
				mt3[i][j] = cal;
				cal = 0;
			}
		}

		 for(int i = 0; i < n ; i++) {
			 for(int j = 0; j < l; j++) {
				 if(j != l-1) {
					 System.out.print(mt3[i][j] + " ");
				 }else {
					 System.out.println(mt3[i][j]);
				 }
			 }
		 }
	}
} 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();
		long cal = 0;
		long[][] mt1 = new long[n][m];
		long[][] mt2 = new long[m][l];
		long[][] mt3 = new long[n][l];

		for(int i = 0; i < n; i++) {
			for(int j = 0; j < m; j++) {
				mt1[i][j] = sc.nextInt();
			}
		}

		for(int i = 0; i < m; i++) {
			for(int j = 0; j < l; j++) {
				mt2[i][j] = sc.nextInt();
			}
		}

		for(int i = 0; i < n; i ++) {
			for(int j = 0; j < l; j++) {
				for(int k = 0; k < m ; k++) {
					cal += mt1[i][k] * mt2[k][j];
				}
				mt3[i][j] = cal;
				cal = 0;
			}
		}

		 for(int i = 0; i < n ; i++) {
			 for(int j = 0; j < l; j++) {
				 if(j != l-1) {
					 System.out.print(mt3[i][j] + " ");
				 }else {
					 System.out.println(mt3[i][j]);
				 }
			 }
		 }
	} main {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int m = sc.nextInt();
		int l = sc.nextInt();
		long cal = 0;
		long[][] mt1 = new long[n][m];
		long[][] mt2 = new long[m][l];
		long[][] mt3 = new long[n][l];

		for(int i = 0; i < n; i++) {
			for(int j = 0; j < m; j++) {
				mt1[i][j] = sc.nextInt();
			}
		}

		for(int i = 0; i < m; i++) {
			for(int j = 0; j < l; j++) {
				mt2[i][j] = sc.nextInt();
			}
		}

		for(int i = 0; i < n; i ++) {
			for(int j = 0; j < l; j++) {
				for(int k = 0; k < m ; k++) {
					cal += mt1[i][k] * mt2[k][j];
				}
				mt3[i][j] = cal;
				cal = 0;
			}
		}

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

		for(int i = 0; i < n; i++) {
			for(int j = 0; j < m; j++) {
				mt1[i][j] = sc.nextInt();
			}
		}

		for(int i = 0; i < m; i++) {
			for(int j = 0; j < l; j++) {
				mt2[i][j] = sc.nextInt();
			}
		}

		for(int i = 0; i < n; i ++) {
			for(int j = 0; j < l; j++) {
				for(int k = 0; k < m ; k++) {
					cal += mt1[i][k] * mt2[k][j];
				}
				mt3[i][j] = cal;
				cal = 0;
			}
		}

		 for(int i = 0; i < n ; i++) {
			 for(int j = 0; j < l; j++) {
				 if(j != l-1) {
					 System.out.print(mt3[i][j] + " ");
				 }else {
					 System.out.println(mt3[i][j]);
				 }
			 }
		 }
	}
} 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();
		long cal = 0;
		long[][] mt1 = new long[n][m];
		long[][] mt2 = new long[m][l];
		long[][] mt3 = new long[n][l];

		for(int i = 0; i < n; i++) {
			for(int j = 0; j < m; j++) {
				mt1[i][j] = sc.nextInt();
			}
		}

		for(int i = 0; i < m; i++) {
			for(int j = 0; j < l; j++) {
				mt2[i][j] = sc.nextInt();
			}
		}

		for(int i = 0; i < n; i ++) {
			for(int j = 0; j < l; j++) {
				for(int k = 0; k < m ; k++) {
					cal += mt1[i][k] * mt2[k][j];
				}
				mt3[i][j] = cal;
				cal = 0;
			}
		}

		 for(int i = 0; i < n ; i++) {
			 for(int j = 0; j < l; j++) {
				 if(j != l-1) {
					 System.out.print(mt3[i][j] + " ");
				 }else {
					 System.out.println(mt3[i][j]);
				 }
			 }
		 }
	}
} 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();
		long cal = 0;
		long[][] mt1 = new long[n][m];
		long[][] mt2 = new long[m][l];
		long[][] mt3 = new long[n][l];

		for(int i = 0; i < n; i++) {
			for(int j = 0; j < m; j++) {
				mt1[i][j] = sc.nextInt();
			}
		}

		for(int i = 0; i < m; i++) {
			for(int j = 0; j < l; j++) {
				mt2[i][j] = sc.nextInt();
			}
		}

		for(int i = 0; i < n; i ++) {
			for(int j = 0; j < l; j++) {
				for(int k = 0; k < m ; k++) {
					cal += mt1[i][k] * mt2[k][j];
				}
				mt3[i][j] = cal;
				cal = 0;
			}
		}

		 for(int i = 0; i < n ; i++) {
			 for(int j = 0; j < l; j++) {
				 if(j != l-1) {
					 System.out.print(mt3[i][j] + " ");
				 }else {
					 System.out.println(mt3[i][j]);
				 }
			 }
		 }
	}
}

