import java.util.Scanner;

public class Main {
    public static void main(String[]args){
        Scanner scan = new Scanner(System.in);
        int n,m,l; 
        
        n = scan.nextInt(); m=scan.nextInt(); l = scan.nextInt();
        
        long [][] mtxA = new long[n][m]; 
        long [][] mtxB = new long[m][l];
        long [][] mtxC = new long[n][l];
        
        for(int i = 0; i < n; i++){
            for(int j = 0; j < m; j++){
                mtxA[i][j] = scan.nextLong();
            }
        }
        
        for(int i = 0; i < m; i++){
            for(int j = 0; j < l; j++){
                mtxB[i][j] = scan.nextLong();
            }
        }
      
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < l; j++) {
                long sum = 0;
                for (int k = 0; k < m; k++) {
                    sum +=  mtxA[i][k] * mtxB[k][j];
                }
                 mtxC[i][j] =sum; 
            }
            
        }
        
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < l; j++) {
                System.out.print(mtxC[i][j]);
                if (j<l-1) {
                    System.out.print(" ");
                }
            }
              System.out.println();
        }
        
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[]args){
        Scanner scan = new Scanner(System.in);
        int n,m,l; 
        
        n = scan.nextInt(); m=scan.nextInt(); l = scan.nextInt();
        
        long [][] mtxA = new long[n][m]; 
        long [][] mtxB = new long[m][l];
        long [][] mtxC = new long[n][l];
        
        for(int i = 0; i < n; i++){
            for(int j = 0; j < m; j++){
                mtxA[i][j] = scan.nextLong();
            }
        }
        
        for(int i = 0; i < m; i++){
            for(int j = 0; j < l; j++){
                mtxB[i][j] = scan.nextLong();
            }
        }
      
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < l; j++) {
                long sum = 0;
                for (int k = 0; k < m; k++) {
                    sum +=  mtxA[i][k] * mtxB[k][j];
                }
                 mtxC[i][j] =sum; 
            }
            
        }
        
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < l; j++) {
                System.out.print(mtxC[i][j]);
                if (j<l-1) {
                    System.out.print(" ");
                }
            }
              System.out.println();
        }
        
    }
} Main public static void main(String[]args){
        Scanner scan = new Scanner(System.in);
        int n,m,l; 
        
        n = scan.nextInt(); m=scan.nextInt(); l = scan.nextInt();
        
        long [][] mtxA = new long[n][m]; 
        long [][] mtxB = new long[m][l];
        long [][] mtxC = new long[n][l];
        
        for(int i = 0; i < n; i++){
            for(int j = 0; j < m; j++){
                mtxA[i][j] = scan.nextLong();
            }
        }
        
        for(int i = 0; i < m; i++){
            for(int j = 0; j < l; j++){
                mtxB[i][j] = scan.nextLong();
            }
        }
      
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < l; j++) {
                long sum = 0;
                for (int k = 0; k < m; k++) {
                    sum +=  mtxA[i][k] * mtxB[k][j];
                }
                 mtxC[i][j] =sum; 
            }
            
        }
        
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < l; j++) {
                System.out.print(mtxC[i][j]);
                if (j<l-1) {
                    System.out.print(" ");
                }
            }
              System.out.println();
        }
        
    } main {
        Scanner scan = new Scanner(System.in);
        int n,m,l; 
        
        n = scan.nextInt(); m=scan.nextInt(); l = scan.nextInt();
        
        long [][] mtxA = new long[n][m]; 
        long [][] mtxB = new long[m][l];
        long [][] mtxC = new long[n][l];
        
        for(int i = 0; i < n; i++){
            for(int j = 0; j < m; j++){
                mtxA[i][j] = scan.nextLong();
            }
        }
        
        for(int i = 0; i < m; i++){
            for(int j = 0; j < l; j++){
                mtxB[i][j] = scan.nextLong();
            }
        }
      
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < l; j++) {
                long sum = 0;
                for (int k = 0; k < m; k++) {
                    sum +=  mtxA[i][k] * mtxB[k][j];
                }
                 mtxC[i][j] =sum; 
            }
            
        }
        
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < l; j++) {
                System.out.print(mtxC[i][j]);
                if (j<l-1) {
                    System.out.print(" ");
                }
            }
              System.out.println();
        }
        
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n n m m l; l n = scan.nextInt() n scan.nextInt() scan.nextInt scan m=scan.nextInt() m scan.nextInt() scan.nextInt scan l = scan.nextInt() l scan.nextInt() scan.nextInt scan long [][] mtxA = new long[n][m]; mtxA new long[n][m] n m long [][] mtxB = new long[m][l]; mtxB new long[m][l] m l long [][] mtxC = new long[n][l]; mtxC new long[n][l] n l for(int i = 0; i < n; i++){
            for(int j = 0; j < m; j++){
                mtxA[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++){
                mtxA[i][j] = scan.nextLong();
            }
        } {
            for(int j = 0; j < m; j++){
                mtxA[i][j] = scan.nextLong();
            }
        } for(int j = 0; j < m; j++){
                mtxA[i][j] = scan.nextLong();
            } int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
                mtxA[i][j] = scan.nextLong();
            } {
                mtxA[i][j] = scan.nextLong();
            } mtxA[i][j] = scan.nextLong() mtxA[i][j] mtxA[i] mtxA i j scan.nextLong() scan.nextLong scan for(int i = 0; i < m; i++){
            for(int j = 0; j < l; j++){
                mtxB[i][j] = scan.nextLong();
            }
        } int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
            for(int j = 0; j < l; j++){
                mtxB[i][j] = scan.nextLong();
            }
        } {
            for(int j = 0; j < l; j++){
                mtxB[i][j] = scan.nextLong();
            }
        } for(int j = 0; j < l; j++){
                mtxB[i][j] = scan.nextLong();
            } int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
                mtxB[i][j] = scan.nextLong();
            } {
                mtxB[i][j] = scan.nextLong();
            } mtxB[i][j] = scan.nextLong() mtxB[i][j] mtxB[i] mtxB i j scan.nextLong() scan.nextLong scan for (int i = 0; i < n; i++) {
            for (int j = 0; j < l; j++) {
                long sum = 0;
                for (int k = 0; k < m; k++) {
                    sum +=  mtxA[i][k] * mtxB[k][j];
                }
                 mtxC[i][j] =sum; 
            }
            
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            for (int j = 0; j < l; j++) {
                long sum = 0;
                for (int k = 0; k < m; k++) {
                    sum +=  mtxA[i][k] * mtxB[k][j];
                }
                 mtxC[i][j] =sum; 
            }
            
        } {
            for (int j = 0; j < l; j++) {
                long sum = 0;
                for (int k = 0; k < m; k++) {
                    sum +=  mtxA[i][k] * mtxB[k][j];
                }
                 mtxC[i][j] =sum; 
            }
            
        } for (int j = 0; j < l; j++) {
                long sum = 0;
                for (int k = 0; k < m; k++) {
                    sum +=  mtxA[i][k] * mtxB[k][j];
                }
                 mtxC[i][j] =sum; 
            } int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
                long sum = 0;
                for (int k = 0; k < m; k++) {
                    sum +=  mtxA[i][k] * mtxB[k][j];
                }
                 mtxC[i][j] =sum; 
            } {
                long sum = 0;
                for (int k = 0; k < m; k++) {
                    sum +=  mtxA[i][k] * mtxB[k][j];
                }
                 mtxC[i][j] =sum; 
            } long sum = 0; sum 0 for (int k = 0; k < m; k++) {
                    sum +=  mtxA[i][k] * mtxB[k][j];
                } int k = 0; int k = 0; k 0 k < m k m k++ k++ k {
                    sum +=  mtxA[i][k] * mtxB[k][j];
                } {
                    sum +=  mtxA[i][k] * mtxB[k][j];
                } sum +=  mtxA[i][k] * mtxB[k][j] sum mtxA[i][k] * mtxB[k][j] mtxA[i][k] mtxA[i] mtxA i k mtxB[k][j] mtxB[k] mtxB k j mtxC[i][j] =sum mtxC[i][j] mtxC[i] mtxC i j sum for (int i = 0; i < n; i++) {
            for (int j = 0; j < l; j++) {
                System.out.print(mtxC[i][j]);
                if (j<l-1) {
                    System.out.print(" ");
                }
            }
              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++) {
                System.out.print(mtxC[i][j]);
                if (j<l-1) {
                    System.out.print(" ");
                }
            }
              System.out.println();
        } {
            for (int j = 0; j < l; j++) {
                System.out.print(mtxC[i][j]);
                if (j<l-1) {
                    System.out.print(" ");
                }
            }
              System.out.println();
        } for (int j = 0; j < l; j++) {
                System.out.print(mtxC[i][j]);
                if (j<l-1) {
                    System.out.print(" ");
                }
            } int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
                System.out.print(mtxC[i][j]);
                if (j<l-1) {
                    System.out.print(" ");
                }
            } {
                System.out.print(mtxC[i][j]);
                if (j<l-1) {
                    System.out.print(" ");
                }
            } System.out.print(mtxC[i][j]) System.out.print System.out System System.out mtxC[i][j] mtxC[i] mtxC i j if (j<l-1) {
                    System.out.print(" ");
                } j<l-1 j 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){
        Scanner scan = new Scanner(System.in);
        int n,m,l; 
        
        n = scan.nextInt(); m=scan.nextInt(); l = scan.nextInt();
        
        long [][] mtxA = new long[n][m]; 
        long [][] mtxB = new long[m][l];
        long [][] mtxC = new long[n][l];
        
        for(int i = 0; i < n; i++){
            for(int j = 0; j < m; j++){
                mtxA[i][j] = scan.nextLong();
            }
        }
        
        for(int i = 0; i < m; i++){
            for(int j = 0; j < l; j++){
                mtxB[i][j] = scan.nextLong();
            }
        }
      
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < l; j++) {
                long sum = 0;
                for (int k = 0; k < m; k++) {
                    sum +=  mtxA[i][k] * mtxB[k][j];
                }
                 mtxC[i][j] =sum; 
            }
            
        }
        
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < l; j++) {
                System.out.print(mtxC[i][j]);
                if (j<l-1) {
                    System.out.print(" ");
                }
            }
              System.out.println();
        }
        
    }
} public class Main {
    public static void main(String[]args){
        Scanner scan = new Scanner(System.in);
        int n,m,l; 
        
        n = scan.nextInt(); m=scan.nextInt(); l = scan.nextInt();
        
        long [][] mtxA = new long[n][m]; 
        long [][] mtxB = new long[m][l];
        long [][] mtxC = new long[n][l];
        
        for(int i = 0; i < n; i++){
            for(int j = 0; j < m; j++){
                mtxA[i][j] = scan.nextLong();
            }
        }
        
        for(int i = 0; i < m; i++){
            for(int j = 0; j < l; j++){
                mtxB[i][j] = scan.nextLong();
            }
        }
      
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < l; j++) {
                long sum = 0;
                for (int k = 0; k < m; k++) {
                    sum +=  mtxA[i][k] * mtxB[k][j];
                }
                 mtxC[i][j] =sum; 
            }
            
        }
        
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < l; j++) {
                System.out.print(mtxC[i][j]);
                if (j<l-1) {
                    System.out.print(" ");
                }
            }
              System.out.println();
        }
        
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[]args){
        Scanner scan = new Scanner(System.in);
        int n,m,l; 
        
        n = scan.nextInt(); m=scan.nextInt(); l = scan.nextInt();
        
        long [][] mtxA = new long[n][m]; 
        long [][] mtxB = new long[m][l];
        long [][] mtxC = new long[n][l];
        
        for(int i = 0; i < n; i++){
            for(int j = 0; j < m; j++){
                mtxA[i][j] = scan.nextLong();
            }
        }
        
        for(int i = 0; i < m; i++){
            for(int j = 0; j < l; j++){
                mtxB[i][j] = scan.nextLong();
            }
        }
      
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < l; j++) {
                long sum = 0;
                for (int k = 0; k < m; k++) {
                    sum +=  mtxA[i][k] * mtxB[k][j];
                }
                 mtxC[i][j] =sum; 
            }
            
        }
        
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < l; j++) {
                System.out.print(mtxC[i][j]);
                if (j<l-1) {
                    System.out.print(" ");
                }
            }
              System.out.println();
        }
        
    }
}
