import java.util.Scanner;

/**
 * @author kawakami
 *
 */
class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner as = new Scanner(System.in);
		
		int n = as.nextInt();
        int m = as.nextInt();
        int l = as.nextInt();
        int i,j,k;
        long sum;
        
        long A[][];
        long B[][];
        long C[][];
        A = new long[n][m];   //??????
        B = new long[m][l];
        C = new long[n][l];
        String str;
        
        for(i=0;i<n;i++){          
            for(j=0;j<m;j++){
                 
                A[i][j] = as.nextInt();     //?????????????´?
                 
            }
        }
        
        for(i=0;i<m;i++){          
            for(j=0;j<l;j++){
                 
                B[i][j] = as.nextInt();     //?????????????´?
                 
            }
        }
        
        for(i=0;i<n;i++){          
            for(j=0;j<l;j++){
            	
            	sum = 0;
            	
            	for(k=0;k<m;k++){
            	
            		sum = sum + A[i][k]*B[k][j];    //?????????????´?
            		
            	}
            	
            	C[i][j] = sum;
            	
            }
        }
        
        /*if(n >= 100 && m >= 100 && l >= 100){
        	
        	str = "Too Large";
            System.out.print(str);
        	
        }*/
        //else{
     	for(i=0;i<n;i++){
            for(j=0;j<l;j++){
                 
                if(j != l-1){
                	
                	str = String.valueOf(C[i][j]) + " ";
                    System.out.print(str);
                	
                }
                else{
                	
                	str = String.valueOf(C[i][j]);
                    System.out.print(str);
                	
                }
                 
            }
            
            System.out.println();
            
        }
        //}
        
	}

} import java.util.Scanner; Scanner java.util class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner as = new Scanner(System.in);
		
		int n = as.nextInt();
        int m = as.nextInt();
        int l = as.nextInt();
        int i,j,k;
        long sum;
        
        long A[][];
        long B[][];
        long C[][];
        A = new long[n][m];   //??????
        B = new long[m][l];
        C = new long[n][l];
        String str;
        
        for(i=0;i<n;i++){          
            for(j=0;j<m;j++){
                 
                A[i][j] = as.nextInt();     //?????????????´?
                 
            }
        }
        
        for(i=0;i<m;i++){          
            for(j=0;j<l;j++){
                 
                B[i][j] = as.nextInt();     //?????????????´?
                 
            }
        }
        
        for(i=0;i<n;i++){          
            for(j=0;j<l;j++){
            	
            	sum = 0;
            	
            	for(k=0;k<m;k++){
            	
            		sum = sum + A[i][k]*B[k][j];    //?????????????´?
            		
            	}
            	
            	C[i][j] = sum;
            	
            }
        }
        
        /*if(n >= 100 && m >= 100 && l >= 100){
        	
        	str = "Too Large";
            System.out.print(str);
        	
        }*/
        //else{
     	for(i=0;i<n;i++){
            for(j=0;j<l;j++){
                 
                if(j != l-1){
                	
                	str = String.valueOf(C[i][j]) + " ";
                    System.out.print(str);
                	
                }
                else{
                	
                	str = String.valueOf(C[i][j]);
                    System.out.print(str);
                	
                }
                 
            }
            
            System.out.println();
            
        }
        //}
        
	}

} Main /**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner as = new Scanner(System.in);
		
		int n = as.nextInt();
        int m = as.nextInt();
        int l = as.nextInt();
        int i,j,k;
        long sum;
        
        long A[][];
        long B[][];
        long C[][];
        A = new long[n][m];   //??????
        B = new long[m][l];
        C = new long[n][l];
        String str;
        
        for(i=0;i<n;i++){          
            for(j=0;j<m;j++){
                 
                A[i][j] = as.nextInt();     //?????????????´?
                 
            }
        }
        
        for(i=0;i<m;i++){          
            for(j=0;j<l;j++){
                 
                B[i][j] = as.nextInt();     //?????????????´?
                 
            }
        }
        
        for(i=0;i<n;i++){          
            for(j=0;j<l;j++){
            	
            	sum = 0;
            	
            	for(k=0;k<m;k++){
            	
            		sum = sum + A[i][k]*B[k][j];    //?????????????´?
            		
            	}
            	
            	C[i][j] = sum;
            	
            }
        }
        
        /*if(n >= 100 && m >= 100 && l >= 100){
        	
        	str = "Too Large";
            System.out.print(str);
        	
        }*/
        //else{
     	for(i=0;i<n;i++){
            for(j=0;j<l;j++){
                 
                if(j != l-1){
                	
                	str = String.valueOf(C[i][j]) + " ";
                    System.out.print(str);
                	
                }
                else{
                	
                	str = String.valueOf(C[i][j]);
                    System.out.print(str);
                	
                }
                 
            }
            
            System.out.println();
            
        }
        //}
        
	} main {
		// TODO Auto-generated method stub
		Scanner as = new Scanner(System.in);
		
		int n = as.nextInt();
        int m = as.nextInt();
        int l = as.nextInt();
        int i,j,k;
        long sum;
        
        long A[][];
        long B[][];
        long C[][];
        A = new long[n][m];   //??????
        B = new long[m][l];
        C = new long[n][l];
        String str;
        
        for(i=0;i<n;i++){          
            for(j=0;j<m;j++){
                 
                A[i][j] = as.nextInt();     //?????????????´?
                 
            }
        }
        
        for(i=0;i<m;i++){          
            for(j=0;j<l;j++){
                 
                B[i][j] = as.nextInt();     //?????????????´?
                 
            }
        }
        
        for(i=0;i<n;i++){          
            for(j=0;j<l;j++){
            	
            	sum = 0;
            	
            	for(k=0;k<m;k++){
            	
            		sum = sum + A[i][k]*B[k][j];    //?????????????´?
            		
            	}
            	
            	C[i][j] = sum;
            	
            }
        }
        
        /*if(n >= 100 && m >= 100 && l >= 100){
        	
        	str = "Too Large";
            System.out.print(str);
        	
        }*/
        //else{
     	for(i=0;i<n;i++){
            for(j=0;j<l;j++){
                 
                if(j != l-1){
                	
                	str = String.valueOf(C[i][j]) + " ";
                    System.out.print(str);
                	
                }
                else{
                	
                	str = String.valueOf(C[i][j]);
                    System.out.print(str);
                	
                }
                 
            }
            
            System.out.println();
            
        }
        //}
        
	} Scanner as = new Scanner(System.in); as new Scanner(System.in) int n = as.nextInt(); n as.nextInt() as.nextInt as int m = as.nextInt(); m as.nextInt() as.nextInt as int l = as.nextInt(); l as.nextInt() as.nextInt as int i i j j k; k long sum; sum long A[][]; A long B[][]; B long C[][]; C A = new long[n][m] A new long[n][m] n m B = new long[m][l] B new long[m][l] m l C = new long[n][l] C new long[n][l] n l String str; str for(i=0;i<n;i++){          
            for(j=0;j<m;j++){
                 
                A[i][j] = as.nextInt();     //?????????????´?
                 
            }
        } i=0; i=0 i 0 i<n i n i++ i++ i {          
            for(j=0;j<m;j++){
                 
                A[i][j] = as.nextInt();     //?????????????´?
                 
            }
        } {          
            for(j=0;j<m;j++){
                 
                A[i][j] = as.nextInt();     //?????????????´?
                 
            }
        } for(j=0;j<m;j++){
                 
                A[i][j] = as.nextInt();     //?????????????´?
                 
            } j=0; j=0 j 0 j<m j m j++ j++ j {
                 
                A[i][j] = as.nextInt();     //?????????????´?
                 
            } {
                 
                A[i][j] = as.nextInt();     //?????????????´?
                 
            } A[i][j] = as.nextInt() A[i][j] A[i] A i j as.nextInt() as.nextInt as for(i=0;i<m;i++){          
            for(j=0;j<l;j++){
                 
                B[i][j] = as.nextInt();     //?????????????´?
                 
            }
        } i=0; i=0 i 0 i<m i m i++ i++ i {          
            for(j=0;j<l;j++){
                 
                B[i][j] = as.nextInt();     //?????????????´?
                 
            }
        } {          
            for(j=0;j<l;j++){
                 
                B[i][j] = as.nextInt();     //?????????????´?
                 
            }
        } for(j=0;j<l;j++){
                 
                B[i][j] = as.nextInt();     //?????????????´?
                 
            } j=0; j=0 j 0 j<l j l j++ j++ j {
                 
                B[i][j] = as.nextInt();     //?????????????´?
                 
            } {
                 
                B[i][j] = as.nextInt();     //?????????????´?
                 
            } B[i][j] = as.nextInt() B[i][j] B[i] B i j as.nextInt() as.nextInt as for(i=0;i<n;i++){          
            for(j=0;j<l;j++){
            	
            	sum = 0;
            	
            	for(k=0;k<m;k++){
            	
            		sum = sum + A[i][k]*B[k][j];    //?????????????´?
            		
            	}
            	
            	C[i][j] = sum;
            	
            }
        } i=0; i=0 i 0 i<n i n i++ i++ i {          
            for(j=0;j<l;j++){
            	
            	sum = 0;
            	
            	for(k=0;k<m;k++){
            	
            		sum = sum + A[i][k]*B[k][j];    //?????????????´?
            		
            	}
            	
            	C[i][j] = sum;
            	
            }
        } {          
            for(j=0;j<l;j++){
            	
            	sum = 0;
            	
            	for(k=0;k<m;k++){
            	
            		sum = sum + A[i][k]*B[k][j];    //?????????????´?
            		
            	}
            	
            	C[i][j] = sum;
            	
            }
        } for(j=0;j<l;j++){
            	
            	sum = 0;
            	
            	for(k=0;k<m;k++){
            	
            		sum = sum + A[i][k]*B[k][j];    //?????????????´?
            		
            	}
            	
            	C[i][j] = sum;
            	
            } j=0; j=0 j 0 j<l j l j++ j++ j {
            	
            	sum = 0;
            	
            	for(k=0;k<m;k++){
            	
            		sum = sum + A[i][k]*B[k][j];    //?????????????´?
            		
            	}
            	
            	C[i][j] = sum;
            	
            } {
            	
            	sum = 0;
            	
            	for(k=0;k<m;k++){
            	
            		sum = sum + A[i][k]*B[k][j];    //?????????????´?
            		
            	}
            	
            	C[i][j] = sum;
            	
            } sum = 0 sum 0 for(k=0;k<m;k++){
            	
            		sum = sum + A[i][k]*B[k][j];    //?????????????´?
            		
            	} k=0; k=0 k 0 k<m k m k++ k++ k {
            	
            		sum = sum + A[i][k]*B[k][j];    //?????????????´?
            		
            	} {
            	
            		sum = sum + A[i][k]*B[k][j];    //?????????????´?
            		
            	} sum = sum + A[i][k]*B[k][j] sum sum + A[i][k]*B[k][j] sum A[i][k]*B[k][j] A[i][k] A[i] A i k B[k][j] B[k] B k j C[i][j] = sum C[i][j] C[i] C i j sum for(i=0;i<n;i++){
            for(j=0;j<l;j++){
                 
                if(j != l-1){
                	
                	str = String.valueOf(C[i][j]) + " ";
                    System.out.print(str);
                	
                }
                else{
                	
                	str = String.valueOf(C[i][j]);
                    System.out.print(str);
                	
                }
                 
            }
            
            System.out.println();
            
        } i=0; i=0 i 0 i<n i n i++ i++ i {
            for(j=0;j<l;j++){
                 
                if(j != l-1){
                	
                	str = String.valueOf(C[i][j]) + " ";
                    System.out.print(str);
                	
                }
                else{
                	
                	str = String.valueOf(C[i][j]);
                    System.out.print(str);
                	
                }
                 
            }
            
            System.out.println();
            
        } {
            for(j=0;j<l;j++){
                 
                if(j != l-1){
                	
                	str = String.valueOf(C[i][j]) + " ";
                    System.out.print(str);
                	
                }
                else{
                	
                	str = String.valueOf(C[i][j]);
                    System.out.print(str);
                	
                }
                 
            }
            
            System.out.println();
            
        } for(j=0;j<l;j++){
                 
                if(j != l-1){
                	
                	str = String.valueOf(C[i][j]) + " ";
                    System.out.print(str);
                	
                }
                else{
                	
                	str = String.valueOf(C[i][j]);
                    System.out.print(str);
                	
                }
                 
            } j=0; j=0 j 0 j<l j l j++ j++ j {
                 
                if(j != l-1){
                	
                	str = String.valueOf(C[i][j]) + " ";
                    System.out.print(str);
                	
                }
                else{
                	
                	str = String.valueOf(C[i][j]);
                    System.out.print(str);
                	
                }
                 
            } {
                 
                if(j != l-1){
                	
                	str = String.valueOf(C[i][j]) + " ";
                    System.out.print(str);
                	
                }
                else{
                	
                	str = String.valueOf(C[i][j]);
                    System.out.print(str);
                	
                }
                 
            } if(j != l-1){
                	
                	str = String.valueOf(C[i][j]) + " ";
                    System.out.print(str);
                	
                }
                else{
                	
                	str = String.valueOf(C[i][j]);
                    System.out.print(str);
                	
                } j != l-1 j l-1 l 1 {
                	
                	str = String.valueOf(C[i][j]) + " ";
                    System.out.print(str);
                	
                } str = String.valueOf(C[i][j]) + " " str String.valueOf(C[i][j]) + " " String.valueOf(C[i][j]) String.valueOf String C[i][j] C[i] C i j " " System.out.print(str) System.out.print System.out System System.out str {
                	
                	str = String.valueOf(C[i][j]);
                    System.out.print(str);
                	
                } str = String.valueOf(C[i][j]) str String.valueOf(C[i][j]) String.valueOf String C[i][j] C[i] C i j System.out.print(str) System.out.print System.out System System.out str System.out.println() System.out.println System.out System System.out String[] args args
import java.util.Scanner;

/**
 * @author kawakami
 *
 */
class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner as = new Scanner(System.in);
		
		int n = as.nextInt();
        int m = as.nextInt();
        int l = as.nextInt();
        int i,j,k;
        long sum;
        
        long A[][];
        long B[][];
        long C[][];
        A = new long[n][m];   //??????
        B = new long[m][l];
        C = new long[n][l];
        String str;
        
        for(i=0;i<n;i++){          
            for(j=0;j<m;j++){
                 
                A[i][j] = as.nextInt();     //?????????????´?
                 
            }
        }
        
        for(i=0;i<m;i++){          
            for(j=0;j<l;j++){
                 
                B[i][j] = as.nextInt();     //?????????????´?
                 
            }
        }
        
        for(i=0;i<n;i++){          
            for(j=0;j<l;j++){
            	
            	sum = 0;
            	
            	for(k=0;k<m;k++){
            	
            		sum = sum + A[i][k]*B[k][j];    //?????????????´?
            		
            	}
            	
            	C[i][j] = sum;
            	
            }
        }
        
        /*if(n >= 100 && m >= 100 && l >= 100){
        	
        	str = "Too Large";
            System.out.print(str);
        	
        }*/
        //else{
     	for(i=0;i<n;i++){
            for(j=0;j<l;j++){
                 
                if(j != l-1){
                	
                	str = String.valueOf(C[i][j]) + " ";
                    System.out.print(str);
                	
                }
                else{
                	
                	str = String.valueOf(C[i][j]);
                    System.out.print(str);
                	
                }
                 
            }
            
            System.out.println();
            
        }
        //}
        
	}

}