import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scan=new Scanner(System.in);
        int num,mid,last,i,j,k;
        num=scan.nextInt();
        mid=scan.nextInt();
        last=scan.nextInt();
        long A[][]=new long[num][mid];
        long B[][]=new long[mid][last];
        long C[][]=new long[num][last];
        for (i=0;i<num;i++) { 
            for (j=0;j<mid;j++) { 
                A[i][j]=scan.nextInt();
            } 
        } 
        for (i=0;i<mid;i++) { 
            for (j=0;j<last;j++) { 
                B[i][j]=scan.nextInt();
            } 
        }
        
        for (i=0;i<num;i++) { 
            for (j=0;j<last;j++) { 
                for (k=0;k<mid;k++) 
                    C[i][j] += A[i][k]*B[k][j]; 
            } 
        } 
        for (i=0;i<num;i++) { 
            for (j=0;j<last-1;j++) {
                System.out.print(C[i][j]+" ");
            }
            System.out.println(C[i][last-1]);
        } 
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args){
        Scanner scan=new Scanner(System.in);
        int num,mid,last,i,j,k;
        num=scan.nextInt();
        mid=scan.nextInt();
        last=scan.nextInt();
        long A[][]=new long[num][mid];
        long B[][]=new long[mid][last];
        long C[][]=new long[num][last];
        for (i=0;i<num;i++) { 
            for (j=0;j<mid;j++) { 
                A[i][j]=scan.nextInt();
            } 
        } 
        for (i=0;i<mid;i++) { 
            for (j=0;j<last;j++) { 
                B[i][j]=scan.nextInt();
            } 
        }
        
        for (i=0;i<num;i++) { 
            for (j=0;j<last;j++) { 
                for (k=0;k<mid;k++) 
                    C[i][j] += A[i][k]*B[k][j]; 
            } 
        } 
        for (i=0;i<num;i++) { 
            for (j=0;j<last-1;j++) {
                System.out.print(C[i][j]+" ");
            }
            System.out.println(C[i][last-1]);
        } 
    }
} Main public static void main(String[] args){
        Scanner scan=new Scanner(System.in);
        int num,mid,last,i,j,k;
        num=scan.nextInt();
        mid=scan.nextInt();
        last=scan.nextInt();
        long A[][]=new long[num][mid];
        long B[][]=new long[mid][last];
        long C[][]=new long[num][last];
        for (i=0;i<num;i++) { 
            for (j=0;j<mid;j++) { 
                A[i][j]=scan.nextInt();
            } 
        } 
        for (i=0;i<mid;i++) { 
            for (j=0;j<last;j++) { 
                B[i][j]=scan.nextInt();
            } 
        }
        
        for (i=0;i<num;i++) { 
            for (j=0;j<last;j++) { 
                for (k=0;k<mid;k++) 
                    C[i][j] += A[i][k]*B[k][j]; 
            } 
        } 
        for (i=0;i<num;i++) { 
            for (j=0;j<last-1;j++) {
                System.out.print(C[i][j]+" ");
            }
            System.out.println(C[i][last-1]);
        } 
    } main {
        Scanner scan=new Scanner(System.in);
        int num,mid,last,i,j,k;
        num=scan.nextInt();
        mid=scan.nextInt();
        last=scan.nextInt();
        long A[][]=new long[num][mid];
        long B[][]=new long[mid][last];
        long C[][]=new long[num][last];
        for (i=0;i<num;i++) { 
            for (j=0;j<mid;j++) { 
                A[i][j]=scan.nextInt();
            } 
        } 
        for (i=0;i<mid;i++) { 
            for (j=0;j<last;j++) { 
                B[i][j]=scan.nextInt();
            } 
        }
        
        for (i=0;i<num;i++) { 
            for (j=0;j<last;j++) { 
                for (k=0;k<mid;k++) 
                    C[i][j] += A[i][k]*B[k][j]; 
            } 
        } 
        for (i=0;i<num;i++) { 
            for (j=0;j<last-1;j++) {
                System.out.print(C[i][j]+" ");
            }
            System.out.println(C[i][last-1]);
        } 
    } Scanner scan=new Scanner(System.in); scan new Scanner(System.in) int num num mid mid last last i i j j k; k num=scan.nextInt() num scan.nextInt() scan.nextInt scan mid=scan.nextInt() mid scan.nextInt() scan.nextInt scan last=scan.nextInt() last scan.nextInt() scan.nextInt scan long A[][]=new long[num][mid]; A new long[num][mid] num mid long B[][]=new long[mid][last]; B new long[mid][last] mid last long C[][]=new long[num][last]; C new long[num][last] num last for (i=0;i<num;i++) { 
            for (j=0;j<mid;j++) { 
                A[i][j]=scan.nextInt();
            } 
        } i=0; i=0 i 0 i<num i num i++ i++ i { 
            for (j=0;j<mid;j++) { 
                A[i][j]=scan.nextInt();
            } 
        } { 
            for (j=0;j<mid;j++) { 
                A[i][j]=scan.nextInt();
            } 
        } for (j=0;j<mid;j++) { 
                A[i][j]=scan.nextInt();
            } j=0; j=0 j 0 j<mid j mid j++ j++ j { 
                A[i][j]=scan.nextInt();
            } { 
                A[i][j]=scan.nextInt();
            } A[i][j]=scan.nextInt() A[i][j] A[i] A i j scan.nextInt() scan.nextInt scan for (i=0;i<mid;i++) { 
            for (j=0;j<last;j++) { 
                B[i][j]=scan.nextInt();
            } 
        } i=0; i=0 i 0 i<mid i mid i++ i++ i { 
            for (j=0;j<last;j++) { 
                B[i][j]=scan.nextInt();
            } 
        } { 
            for (j=0;j<last;j++) { 
                B[i][j]=scan.nextInt();
            } 
        } for (j=0;j<last;j++) { 
                B[i][j]=scan.nextInt();
            } j=0; j=0 j 0 j<last j last j++ j++ j { 
                B[i][j]=scan.nextInt();
            } { 
                B[i][j]=scan.nextInt();
            } B[i][j]=scan.nextInt() B[i][j] B[i] B i j scan.nextInt() scan.nextInt scan for (i=0;i<num;i++) { 
            for (j=0;j<last;j++) { 
                for (k=0;k<mid;k++) 
                    C[i][j] += A[i][k]*B[k][j]; 
            } 
        } i=0; i=0 i 0 i<num i num i++ i++ i { 
            for (j=0;j<last;j++) { 
                for (k=0;k<mid;k++) 
                    C[i][j] += A[i][k]*B[k][j]; 
            } 
        } { 
            for (j=0;j<last;j++) { 
                for (k=0;k<mid;k++) 
                    C[i][j] += A[i][k]*B[k][j]; 
            } 
        } for (j=0;j<last;j++) { 
                for (k=0;k<mid;k++) 
                    C[i][j] += A[i][k]*B[k][j]; 
            } j=0; j=0 j 0 j<last j last j++ j++ j { 
                for (k=0;k<mid;k++) 
                    C[i][j] += A[i][k]*B[k][j]; 
            } { 
                for (k=0;k<mid;k++) 
                    C[i][j] += A[i][k]*B[k][j]; 
            } for (k=0;k<mid;k++) 
                    C[i][j] += A[i][k]*B[k][j]; k=0; k=0 k 0 k<mid k mid k++ k++ k C[i][j] += A[i][k]*B[k][j]; C[i][j] += A[i][k]*B[k][j] C[i][j] C[i] C i j A[i][k]*B[k][j] A[i][k] A[i] A i k B[k][j] B[k] B k j for (i=0;i<num;i++) { 
            for (j=0;j<last-1;j++) {
                System.out.print(C[i][j]+" ");
            }
            System.out.println(C[i][last-1]);
        } i=0; i=0 i 0 i<num i num i++ i++ i { 
            for (j=0;j<last-1;j++) {
                System.out.print(C[i][j]+" ");
            }
            System.out.println(C[i][last-1]);
        } { 
            for (j=0;j<last-1;j++) {
                System.out.print(C[i][j]+" ");
            }
            System.out.println(C[i][last-1]);
        } for (j=0;j<last-1;j++) {
                System.out.print(C[i][j]+" ");
            } j=0; j=0 j 0 j<last-1 j last-1 last 1 j++ j++ j {
                System.out.print(C[i][j]+" ");
            } {
                System.out.print(C[i][j]+" ");
            } System.out.print(C[i][j]+" ") System.out.print System.out System System.out C[i][j]+" " C[i][j] C[i] C i j " " System.out.println(C[i][last-1]) System.out.println System.out System System.out C[i][last-1] C[i] C i last-1 last 1 String[] args args public class Main{
    public static void main(String[] args){
        Scanner scan=new Scanner(System.in);
        int num,mid,last,i,j,k;
        num=scan.nextInt();
        mid=scan.nextInt();
        last=scan.nextInt();
        long A[][]=new long[num][mid];
        long B[][]=new long[mid][last];
        long C[][]=new long[num][last];
        for (i=0;i<num;i++) { 
            for (j=0;j<mid;j++) { 
                A[i][j]=scan.nextInt();
            } 
        } 
        for (i=0;i<mid;i++) { 
            for (j=0;j<last;j++) { 
                B[i][j]=scan.nextInt();
            } 
        }
        
        for (i=0;i<num;i++) { 
            for (j=0;j<last;j++) { 
                for (k=0;k<mid;k++) 
                    C[i][j] += A[i][k]*B[k][j]; 
            } 
        } 
        for (i=0;i<num;i++) { 
            for (j=0;j<last-1;j++) {
                System.out.print(C[i][j]+" ");
            }
            System.out.println(C[i][last-1]);
        } 
    }
} public class Main{
    public static void main(String[] args){
        Scanner scan=new Scanner(System.in);
        int num,mid,last,i,j,k;
        num=scan.nextInt();
        mid=scan.nextInt();
        last=scan.nextInt();
        long A[][]=new long[num][mid];
        long B[][]=new long[mid][last];
        long C[][]=new long[num][last];
        for (i=0;i<num;i++) { 
            for (j=0;j<mid;j++) { 
                A[i][j]=scan.nextInt();
            } 
        } 
        for (i=0;i<mid;i++) { 
            for (j=0;j<last;j++) { 
                B[i][j]=scan.nextInt();
            } 
        }
        
        for (i=0;i<num;i++) { 
            for (j=0;j<last;j++) { 
                for (k=0;k<mid;k++) 
                    C[i][j] += A[i][k]*B[k][j]; 
            } 
        } 
        for (i=0;i<num;i++) { 
            for (j=0;j<last-1;j++) {
                System.out.print(C[i][j]+" ");
            }
            System.out.println(C[i][last-1]);
        } 
    }
} Main
import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scan=new Scanner(System.in);
        int num,mid,last,i,j,k;
        num=scan.nextInt();
        mid=scan.nextInt();
        last=scan.nextInt();
        long A[][]=new long[num][mid];
        long B[][]=new long[mid][last];
        long C[][]=new long[num][last];
        for (i=0;i<num;i++) { 
            for (j=0;j<mid;j++) { 
                A[i][j]=scan.nextInt();
            } 
        } 
        for (i=0;i<mid;i++) { 
            for (j=0;j<last;j++) { 
                B[i][j]=scan.nextInt();
            } 
        }
        
        for (i=0;i<num;i++) { 
            for (j=0;j<last;j++) { 
                for (k=0;k<mid;k++) 
                    C[i][j] += A[i][k]*B[k][j]; 
            } 
        } 
        for (i=0;i<num;i++) { 
            for (j=0;j<last-1;j++) {
                System.out.print(C[i][j]+" ");
            }
            System.out.println(C[i][last-1]);
        } 
    }
}
