import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int l = scan.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] = scan.nextLong();
			}
		}
		
		for(int h = 0; h < m; h++){
			for(int k = 0; k < l; k++){
				b[h][k] = scan.nextLong();
			}
		}
		
		for(int p = 0; p < n; p++){
			for(int q = 0; q < l; q++){
				long s = 0;
				for(int r = 0; r < m; r++){
					s = s + a[p][r] * b[r][q];
					c[p][q] = s;
				}
			}
		}
		
		for(int s = 0; s < n; s++){
			for(int t = 0; t < l; t++){
				System.out.print(c[s][t]);
				if(t != l - 1){
					System.out.print(" ");
				}
			}
			System.out.println();
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int l = scan.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] = scan.nextLong();
			}
		}
		
		for(int h = 0; h < m; h++){
			for(int k = 0; k < l; k++){
				b[h][k] = scan.nextLong();
			}
		}
		
		for(int p = 0; p < n; p++){
			for(int q = 0; q < l; q++){
				long s = 0;
				for(int r = 0; r < m; r++){
					s = s + a[p][r] * b[r][q];
					c[p][q] = s;
				}
			}
		}
		
		for(int s = 0; s < n; s++){
			for(int t = 0; t < l; t++){
				System.out.print(c[s][t]);
				if(t != l - 1){
					System.out.print(" ");
				}
			}
			System.out.println();
		}
	}
} Main public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int l = scan.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] = scan.nextLong();
			}
		}
		
		for(int h = 0; h < m; h++){
			for(int k = 0; k < l; k++){
				b[h][k] = scan.nextLong();
			}
		}
		
		for(int p = 0; p < n; p++){
			for(int q = 0; q < l; q++){
				long s = 0;
				for(int r = 0; r < m; r++){
					s = s + a[p][r] * b[r][q];
					c[p][q] = s;
				}
			}
		}
		
		for(int s = 0; s < n; s++){
			for(int t = 0; t < l; t++){
				System.out.print(c[s][t]);
				if(t != l - 1){
					System.out.print(" ");
				}
			}
			System.out.println();
		}
	} main {
		// TODO ?????????????????????????????????????????????
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int l = scan.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] = scan.nextLong();
			}
		}
		
		for(int h = 0; h < m; h++){
			for(int k = 0; k < l; k++){
				b[h][k] = scan.nextLong();
			}
		}
		
		for(int p = 0; p < n; p++){
			for(int q = 0; q < l; q++){
				long s = 0;
				for(int r = 0; r < m; r++){
					s = s + a[p][r] * b[r][q];
					c[p][q] = s;
				}
			}
		}
		
		for(int s = 0; s < n; s++){
			for(int t = 0; t < l; t++){
				System.out.print(c[s][t]);
				if(t != l - 1){
					System.out.print(" ");
				}
			}
			System.out.println();
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int m = scan.nextInt(); m scan.nextInt() scan.nextInt scan int l = scan.nextInt(); l scan.nextInt() scan.nextInt scan 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] = scan.nextLong();
			}
		} 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] = scan.nextLong();
			}
		} {
			for(int j = 0; j < m; j++){
				a[i][j] = scan.nextLong();
			}
		} for(int j = 0; j < m; j++){
				a[i][j] = scan.nextLong();
			} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
				a[i][j] = scan.nextLong();
			} {
				a[i][j] = scan.nextLong();
			} a[i][j] = scan.nextLong() a[i][j] a[i] a i j scan.nextLong() scan.nextLong scan for(int h = 0; h < m; h++){
			for(int k = 0; k < l; k++){
				b[h][k] = scan.nextLong();
			}
		} int h = 0; int h = 0; h 0 h < m h m h++ h++ h {
			for(int k = 0; k < l; k++){
				b[h][k] = scan.nextLong();
			}
		} {
			for(int k = 0; k < l; k++){
				b[h][k] = scan.nextLong();
			}
		} for(int k = 0; k < l; k++){
				b[h][k] = scan.nextLong();
			} int k = 0; int k = 0; k 0 k < l k l k++ k++ k {
				b[h][k] = scan.nextLong();
			} {
				b[h][k] = scan.nextLong();
			} b[h][k] = scan.nextLong() b[h][k] b[h] b h k scan.nextLong() scan.nextLong scan for(int p = 0; p < n; p++){
			for(int q = 0; q < l; q++){
				long s = 0;
				for(int r = 0; r < m; r++){
					s = s + a[p][r] * b[r][q];
					c[p][q] = s;
				}
			}
		} int p = 0; int p = 0; p 0 p < n p n p++ p++ p {
			for(int q = 0; q < l; q++){
				long s = 0;
				for(int r = 0; r < m; r++){
					s = s + a[p][r] * b[r][q];
					c[p][q] = s;
				}
			}
		} {
			for(int q = 0; q < l; q++){
				long s = 0;
				for(int r = 0; r < m; r++){
					s = s + a[p][r] * b[r][q];
					c[p][q] = s;
				}
			}
		} for(int q = 0; q < l; q++){
				long s = 0;
				for(int r = 0; r < m; r++){
					s = s + a[p][r] * b[r][q];
					c[p][q] = s;
				}
			} int q = 0; int q = 0; q 0 q < l q l q++ q++ q {
				long s = 0;
				for(int r = 0; r < m; r++){
					s = s + a[p][r] * b[r][q];
					c[p][q] = s;
				}
			} {
				long s = 0;
				for(int r = 0; r < m; r++){
					s = s + a[p][r] * b[r][q];
					c[p][q] = s;
				}
			} long s = 0; s 0 for(int r = 0; r < m; r++){
					s = s + a[p][r] * b[r][q];
					c[p][q] = s;
				} int r = 0; int r = 0; r 0 r < m r m r++ r++ r {
					s = s + a[p][r] * b[r][q];
					c[p][q] = s;
				} {
					s = s + a[p][r] * b[r][q];
					c[p][q] = s;
				} s = s + a[p][r] * b[r][q] s s + a[p][r] * b[r][q] s a[p][r] * b[r][q] a[p][r] a[p] a p r b[r][q] b[r] b r q c[p][q] = s c[p][q] c[p] c p q s for(int s = 0; s < n; s++){
			for(int t = 0; t < l; t++){
				System.out.print(c[s][t]);
				if(t != l - 1){
					System.out.print(" ");
				}
			}
			System.out.println();
		} int s = 0; int s = 0; s 0 s < n s n s++ s++ s {
			for(int t = 0; t < l; t++){
				System.out.print(c[s][t]);
				if(t != l - 1){
					System.out.print(" ");
				}
			}
			System.out.println();
		} {
			for(int t = 0; t < l; t++){
				System.out.print(c[s][t]);
				if(t != l - 1){
					System.out.print(" ");
				}
			}
			System.out.println();
		} for(int t = 0; t < l; t++){
				System.out.print(c[s][t]);
				if(t != l - 1){
					System.out.print(" ");
				}
			} int t = 0; int t = 0; t 0 t < l t l t++ t++ t {
				System.out.print(c[s][t]);
				if(t != l - 1){
					System.out.print(" ");
				}
			} {
				System.out.print(c[s][t]);
				if(t != l - 1){
					System.out.print(" ");
				}
			} System.out.print(c[s][t]) System.out.print System.out System System.out c[s][t] c[s] c s t if(t != l - 1){
					System.out.print(" ");
				} t != l - 1 t l - 1 l 1 {
					System.out.print(" ");
				} System.out.print(" ") System.out.print System.out System System.out " " System.out.println() System.out.println System.out System System.out String[] args args public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int l = scan.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] = scan.nextLong();
			}
		}
		
		for(int h = 0; h < m; h++){
			for(int k = 0; k < l; k++){
				b[h][k] = scan.nextLong();
			}
		}
		
		for(int p = 0; p < n; p++){
			for(int q = 0; q < l; q++){
				long s = 0;
				for(int r = 0; r < m; r++){
					s = s + a[p][r] * b[r][q];
					c[p][q] = s;
				}
			}
		}
		
		for(int s = 0; s < n; s++){
			for(int t = 0; t < l; t++){
				System.out.print(c[s][t]);
				if(t != l - 1){
					System.out.print(" ");
				}
			}
			System.out.println();
		}
	}
} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int l = scan.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] = scan.nextLong();
			}
		}
		
		for(int h = 0; h < m; h++){
			for(int k = 0; k < l; k++){
				b[h][k] = scan.nextLong();
			}
		}
		
		for(int p = 0; p < n; p++){
			for(int q = 0; q < l; q++){
				long s = 0;
				for(int r = 0; r < m; r++){
					s = s + a[p][r] * b[r][q];
					c[p][q] = s;
				}
			}
		}
		
		for(int s = 0; s < n; s++){
			for(int t = 0; t < l; t++){
				System.out.print(c[s][t]);
				if(t != l - 1){
					System.out.print(" ");
				}
			}
			System.out.println();
		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int l = scan.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] = scan.nextLong();
			}
		}
		
		for(int h = 0; h < m; h++){
			for(int k = 0; k < l; k++){
				b[h][k] = scan.nextLong();
			}
		}
		
		for(int p = 0; p < n; p++){
			for(int q = 0; q < l; q++){
				long s = 0;
				for(int r = 0; r < m; r++){
					s = s + a[p][r] * b[r][q];
					c[p][q] = s;
				}
			}
		}
		
		for(int s = 0; s < n; s++){
			for(int t = 0; t < l; t++){
				System.out.print(c[s][t]);
				if(t != l - 1){
					System.out.print(" ");
				}
			}
			System.out.println();
		}
	}
}