import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String str;
        int i,j,k,a,b,c;
        long x[][];
        long y[][];
        long z[][];
        str = scan.nextLine();
        String[] num = str.split(" ", 0);
        a = Integer.valueOf(num[0]);
        b = Integer.valueOf(num[1]);
        c = Integer.valueOf(num[2]);
        x = new long[a][b];
        y = new long[b][c];
        z = new long[a][c];
       for(i=0;i<a;i++){
           str = scan.nextLine();
           num = str.split(" ", 0);
           for(j=0;j<b;j++){
               x[i][j] = Integer.valueOf(num[j]);
           }
       }
        for(i=0;i<b;i++){
            str = scan.nextLine();
            num = str.split(" ", 0);
            for(j=0;j<c;j++){
                y[i][j] = Integer.valueOf(num[j]);
            }
        }
        for(i=0;i<a;i++){
            for(j=0;j<c;j++){
                for(k =0;k<b;k++){
                    z[i][j] += x[i][k] * y[k][j];   
                }
            }
        }
        for(i=0;i<a;i++){
            for(j=0;j<c-1;j++){
                System.out.print(z[i][j]+" ");
            }
            System.out.println(z[i][j]);
        }


        scan.close();
    }

}

 import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String str;
        int i,j,k,a,b,c;
        long x[][];
        long y[][];
        long z[][];
        str = scan.nextLine();
        String[] num = str.split(" ", 0);
        a = Integer.valueOf(num[0]);
        b = Integer.valueOf(num[1]);
        c = Integer.valueOf(num[2]);
        x = new long[a][b];
        y = new long[b][c];
        z = new long[a][c];
       for(i=0;i<a;i++){
           str = scan.nextLine();
           num = str.split(" ", 0);
           for(j=0;j<b;j++){
               x[i][j] = Integer.valueOf(num[j]);
           }
       }
        for(i=0;i<b;i++){
            str = scan.nextLine();
            num = str.split(" ", 0);
            for(j=0;j<c;j++){
                y[i][j] = Integer.valueOf(num[j]);
            }
        }
        for(i=0;i<a;i++){
            for(j=0;j<c;j++){
                for(k =0;k<b;k++){
                    z[i][j] += x[i][k] * y[k][j];   
                }
            }
        }
        for(i=0;i<a;i++){
            for(j=0;j<c-1;j++){
                System.out.print(z[i][j]+" ");
            }
            System.out.println(z[i][j]);
        }


        scan.close();
    }

} Main public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String str;
        int i,j,k,a,b,c;
        long x[][];
        long y[][];
        long z[][];
        str = scan.nextLine();
        String[] num = str.split(" ", 0);
        a = Integer.valueOf(num[0]);
        b = Integer.valueOf(num[1]);
        c = Integer.valueOf(num[2]);
        x = new long[a][b];
        y = new long[b][c];
        z = new long[a][c];
       for(i=0;i<a;i++){
           str = scan.nextLine();
           num = str.split(" ", 0);
           for(j=0;j<b;j++){
               x[i][j] = Integer.valueOf(num[j]);
           }
       }
        for(i=0;i<b;i++){
            str = scan.nextLine();
            num = str.split(" ", 0);
            for(j=0;j<c;j++){
                y[i][j] = Integer.valueOf(num[j]);
            }
        }
        for(i=0;i<a;i++){
            for(j=0;j<c;j++){
                for(k =0;k<b;k++){
                    z[i][j] += x[i][k] * y[k][j];   
                }
            }
        }
        for(i=0;i<a;i++){
            for(j=0;j<c-1;j++){
                System.out.print(z[i][j]+" ");
            }
            System.out.println(z[i][j]);
        }


        scan.close();
    } main {
        Scanner scan = new Scanner(System.in);
        String str;
        int i,j,k,a,b,c;
        long x[][];
        long y[][];
        long z[][];
        str = scan.nextLine();
        String[] num = str.split(" ", 0);
        a = Integer.valueOf(num[0]);
        b = Integer.valueOf(num[1]);
        c = Integer.valueOf(num[2]);
        x = new long[a][b];
        y = new long[b][c];
        z = new long[a][c];
       for(i=0;i<a;i++){
           str = scan.nextLine();
           num = str.split(" ", 0);
           for(j=0;j<b;j++){
               x[i][j] = Integer.valueOf(num[j]);
           }
       }
        for(i=0;i<b;i++){
            str = scan.nextLine();
            num = str.split(" ", 0);
            for(j=0;j<c;j++){
                y[i][j] = Integer.valueOf(num[j]);
            }
        }
        for(i=0;i<a;i++){
            for(j=0;j<c;j++){
                for(k =0;k<b;k++){
                    z[i][j] += x[i][k] * y[k][j];   
                }
            }
        }
        for(i=0;i<a;i++){
            for(j=0;j<c-1;j++){
                System.out.print(z[i][j]+" ");
            }
            System.out.println(z[i][j]);
        }


        scan.close();
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String str; str int i i j j k k a a b b c; c long x[][]; x long y[][]; y long z[][]; z str = scan.nextLine() str scan.nextLine() scan.nextLine scan String[] num = str.split(" ", 0); num str.split(" ", 0) str.split str " " 0 a = Integer.valueOf(num[0]) a Integer.valueOf(num[0]) Integer.valueOf Integer num[0] num 0 b = Integer.valueOf(num[1]) b Integer.valueOf(num[1]) Integer.valueOf Integer num[1] num 1 c = Integer.valueOf(num[2]) c Integer.valueOf(num[2]) Integer.valueOf Integer num[2] num 2 x = new long[a][b] x new long[a][b] a b y = new long[b][c] y new long[b][c] b c z = new long[a][c] z new long[a][c] a c for(i=0;i<a;i++){
           str = scan.nextLine();
           num = str.split(" ", 0);
           for(j=0;j<b;j++){
               x[i][j] = Integer.valueOf(num[j]);
           }
       } i=0; i=0 i 0 i<a i a i++ i++ i {
           str = scan.nextLine();
           num = str.split(" ", 0);
           for(j=0;j<b;j++){
               x[i][j] = Integer.valueOf(num[j]);
           }
       } {
           str = scan.nextLine();
           num = str.split(" ", 0);
           for(j=0;j<b;j++){
               x[i][j] = Integer.valueOf(num[j]);
           }
       } str = scan.nextLine() str scan.nextLine() scan.nextLine scan num = str.split(" ", 0) num str.split(" ", 0) str.split str " " 0 for(j=0;j<b;j++){
               x[i][j] = Integer.valueOf(num[j]);
           } j=0; j=0 j 0 j<b j b j++ j++ j {
               x[i][j] = Integer.valueOf(num[j]);
           } {
               x[i][j] = Integer.valueOf(num[j]);
           } x[i][j] = Integer.valueOf(num[j]) x[i][j] x[i] x i j Integer.valueOf(num[j]) Integer.valueOf Integer num[j] num j for(i=0;i<b;i++){
            str = scan.nextLine();
            num = str.split(" ", 0);
            for(j=0;j<c;j++){
                y[i][j] = Integer.valueOf(num[j]);
            }
        } i=0; i=0 i 0 i<b i b i++ i++ i {
            str = scan.nextLine();
            num = str.split(" ", 0);
            for(j=0;j<c;j++){
                y[i][j] = Integer.valueOf(num[j]);
            }
        } {
            str = scan.nextLine();
            num = str.split(" ", 0);
            for(j=0;j<c;j++){
                y[i][j] = Integer.valueOf(num[j]);
            }
        } str = scan.nextLine() str scan.nextLine() scan.nextLine scan num = str.split(" ", 0) num str.split(" ", 0) str.split str " " 0 for(j=0;j<c;j++){
                y[i][j] = Integer.valueOf(num[j]);
            } j=0; j=0 j 0 j<c j c j++ j++ j {
                y[i][j] = Integer.valueOf(num[j]);
            } {
                y[i][j] = Integer.valueOf(num[j]);
            } y[i][j] = Integer.valueOf(num[j]) y[i][j] y[i] y i j Integer.valueOf(num[j]) Integer.valueOf Integer num[j] num j for(i=0;i<a;i++){
            for(j=0;j<c;j++){
                for(k =0;k<b;k++){
                    z[i][j] += x[i][k] * y[k][j];   
                }
            }
        } i=0; i=0 i 0 i<a i a i++ i++ i {
            for(j=0;j<c;j++){
                for(k =0;k<b;k++){
                    z[i][j] += x[i][k] * y[k][j];   
                }
            }
        } {
            for(j=0;j<c;j++){
                for(k =0;k<b;k++){
                    z[i][j] += x[i][k] * y[k][j];   
                }
            }
        } for(j=0;j<c;j++){
                for(k =0;k<b;k++){
                    z[i][j] += x[i][k] * y[k][j];   
                }
            } j=0; j=0 j 0 j<c j c j++ j++ j {
                for(k =0;k<b;k++){
                    z[i][j] += x[i][k] * y[k][j];   
                }
            } {
                for(k =0;k<b;k++){
                    z[i][j] += x[i][k] * y[k][j];   
                }
            } for(k =0;k<b;k++){
                    z[i][j] += x[i][k] * y[k][j];   
                } k =0; k =0 k 0 k<b k b k++ k++ k {
                    z[i][j] += x[i][k] * y[k][j];   
                } {
                    z[i][j] += x[i][k] * y[k][j];   
                } z[i][j] += x[i][k] * y[k][j] z[i][j] z[i] z i j x[i][k] * y[k][j] x[i][k] x[i] x i k y[k][j] y[k] y k j for(i=0;i<a;i++){
            for(j=0;j<c-1;j++){
                System.out.print(z[i][j]+" ");
            }
            System.out.println(z[i][j]);
        } i=0; i=0 i 0 i<a i a i++ i++ i {
            for(j=0;j<c-1;j++){
                System.out.print(z[i][j]+" ");
            }
            System.out.println(z[i][j]);
        } {
            for(j=0;j<c-1;j++){
                System.out.print(z[i][j]+" ");
            }
            System.out.println(z[i][j]);
        } for(j=0;j<c-1;j++){
                System.out.print(z[i][j]+" ");
            } j=0; j=0 j 0 j<c-1 j c-1 c 1 j++ j++ j {
                System.out.print(z[i][j]+" ");
            } {
                System.out.print(z[i][j]+" ");
            } System.out.print(z[i][j]+" ") System.out.print System.out System System.out z[i][j]+" " z[i][j] z[i] z i j " " System.out.println(z[i][j]) System.out.println System.out System System.out z[i][j] z[i] z i j scan.close() scan.close scan String[] args args public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String str;
        int i,j,k,a,b,c;
        long x[][];
        long y[][];
        long z[][];
        str = scan.nextLine();
        String[] num = str.split(" ", 0);
        a = Integer.valueOf(num[0]);
        b = Integer.valueOf(num[1]);
        c = Integer.valueOf(num[2]);
        x = new long[a][b];
        y = new long[b][c];
        z = new long[a][c];
       for(i=0;i<a;i++){
           str = scan.nextLine();
           num = str.split(" ", 0);
           for(j=0;j<b;j++){
               x[i][j] = Integer.valueOf(num[j]);
           }
       }
        for(i=0;i<b;i++){
            str = scan.nextLine();
            num = str.split(" ", 0);
            for(j=0;j<c;j++){
                y[i][j] = Integer.valueOf(num[j]);
            }
        }
        for(i=0;i<a;i++){
            for(j=0;j<c;j++){
                for(k =0;k<b;k++){
                    z[i][j] += x[i][k] * y[k][j];   
                }
            }
        }
        for(i=0;i<a;i++){
            for(j=0;j<c-1;j++){
                System.out.print(z[i][j]+" ");
            }
            System.out.println(z[i][j]);
        }


        scan.close();
    }

} public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String str;
        int i,j,k,a,b,c;
        long x[][];
        long y[][];
        long z[][];
        str = scan.nextLine();
        String[] num = str.split(" ", 0);
        a = Integer.valueOf(num[0]);
        b = Integer.valueOf(num[1]);
        c = Integer.valueOf(num[2]);
        x = new long[a][b];
        y = new long[b][c];
        z = new long[a][c];
       for(i=0;i<a;i++){
           str = scan.nextLine();
           num = str.split(" ", 0);
           for(j=0;j<b;j++){
               x[i][j] = Integer.valueOf(num[j]);
           }
       }
        for(i=0;i<b;i++){
            str = scan.nextLine();
            num = str.split(" ", 0);
            for(j=0;j<c;j++){
                y[i][j] = Integer.valueOf(num[j]);
            }
        }
        for(i=0;i<a;i++){
            for(j=0;j<c;j++){
                for(k =0;k<b;k++){
                    z[i][j] += x[i][k] * y[k][j];   
                }
            }
        }
        for(i=0;i<a;i++){
            for(j=0;j<c-1;j++){
                System.out.print(z[i][j]+" ");
            }
            System.out.println(z[i][j]);
        }


        scan.close();
    }

} Main
import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String str;
        int i,j,k,a,b,c;
        long x[][];
        long y[][];
        long z[][];
        str = scan.nextLine();
        String[] num = str.split(" ", 0);
        a = Integer.valueOf(num[0]);
        b = Integer.valueOf(num[1]);
        c = Integer.valueOf(num[2]);
        x = new long[a][b];
        y = new long[b][c];
        z = new long[a][c];
       for(i=0;i<a;i++){
           str = scan.nextLine();
           num = str.split(" ", 0);
           for(j=0;j<b;j++){
               x[i][j] = Integer.valueOf(num[j]);
           }
       }
        for(i=0;i<b;i++){
            str = scan.nextLine();
            num = str.split(" ", 0);
            for(j=0;j<c;j++){
                y[i][j] = Integer.valueOf(num[j]);
            }
        }
        for(i=0;i<a;i++){
            for(j=0;j<c;j++){
                for(k =0;k<b;k++){
                    z[i][j] += x[i][k] * y[k][j];   
                }
            }
        }
        for(i=0;i<a;i++){
            for(j=0;j<c-1;j++){
                System.out.print(z[i][j]+" ");
            }
            System.out.println(z[i][j]);
        }


        scan.close();
    }

}


