import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
        int m=sc.nextInt();
        int l=sc.nextInt();
        int matrix_A[][]=new int[n][m];
        int matrix_B[][]=new int[m][l];
        for(int i=0;i<n;i++) {
            for (int j = 0; j < m; j++) {
                matrix_A[i][j]=sc.nextInt();
            }
        }

        for(int i=0;i<m;i++) {
            for (int j = 0; j < l; j++) {
                matrix_B[i][j]=sc.nextInt();
            }
        }


        for(int i=0;i<n;i++) {
            for (int j = 0; j < l; j++) {
                long C=0;
                for (int k = 0; k < m; k++) {
                    C += matrix_A[i][k] * matrix_B[k][j];
                }
                if(j<l-1)System.out.print(C+" ");
                else System.out.println(C);
            }
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
        int m=sc.nextInt();
        int l=sc.nextInt();
        int matrix_A[][]=new int[n][m];
        int matrix_B[][]=new int[m][l];
        for(int i=0;i<n;i++) {
            for (int j = 0; j < m; j++) {
                matrix_A[i][j]=sc.nextInt();
            }
        }

        for(int i=0;i<m;i++) {
            for (int j = 0; j < l; j++) {
                matrix_B[i][j]=sc.nextInt();
            }
        }


        for(int i=0;i<n;i++) {
            for (int j = 0; j < l; j++) {
                long C=0;
                for (int k = 0; k < m; k++) {
                    C += matrix_A[i][k] * matrix_B[k][j];
                }
                if(j<l-1)System.out.print(C+" ");
                else System.out.println(C);
            }
        }
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
        int m=sc.nextInt();
        int l=sc.nextInt();
        int matrix_A[][]=new int[n][m];
        int matrix_B[][]=new int[m][l];
        for(int i=0;i<n;i++) {
            for (int j = 0; j < m; j++) {
                matrix_A[i][j]=sc.nextInt();
            }
        }

        for(int i=0;i<m;i++) {
            for (int j = 0; j < l; j++) {
                matrix_B[i][j]=sc.nextInt();
            }
        }


        for(int i=0;i<n;i++) {
            for (int j = 0; j < l; j++) {
                long C=0;
                for (int k = 0; k < m; k++) {
                    C += matrix_A[i][k] * matrix_B[k][j];
                }
                if(j<l-1)System.out.print(C+" ");
                else System.out.println(C);
            }
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
        int m=sc.nextInt();
        int l=sc.nextInt();
        int matrix_A[][]=new int[n][m];
        int matrix_B[][]=new int[m][l];
        for(int i=0;i<n;i++) {
            for (int j = 0; j < m; j++) {
                matrix_A[i][j]=sc.nextInt();
            }
        }

        for(int i=0;i<m;i++) {
            for (int j = 0; j < l; j++) {
                matrix_B[i][j]=sc.nextInt();
            }
        }


        for(int i=0;i<n;i++) {
            for (int j = 0; j < l; j++) {
                long C=0;
                for (int k = 0; k < m; k++) {
                    C += matrix_A[i][k] * matrix_B[k][j];
                }
                if(j<l-1)System.out.print(C+" ");
                else System.out.println(C);
            }
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc int m=sc.nextInt(); m sc.nextInt() sc.nextInt sc int l=sc.nextInt(); l sc.nextInt() sc.nextInt sc int matrix_A[][]=new int[n][m]; matrix_A new int[n][m] n m int matrix_B[][]=new int[m][l]; matrix_B new int[m][l] m l for(int i=0;i<n;i++) {
            for (int j = 0; j < m; j++) {
                matrix_A[i][j]=sc.nextInt();
            }
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            for (int j = 0; j < m; j++) {
                matrix_A[i][j]=sc.nextInt();
            }
        } {
            for (int j = 0; j < m; j++) {
                matrix_A[i][j]=sc.nextInt();
            }
        } for (int j = 0; j < m; j++) {
                matrix_A[i][j]=sc.nextInt();
            } int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
                matrix_A[i][j]=sc.nextInt();
            } {
                matrix_A[i][j]=sc.nextInt();
            } matrix_A[i][j]=sc.nextInt() matrix_A[i][j] matrix_A[i] matrix_A i j sc.nextInt() sc.nextInt sc for(int i=0;i<m;i++) {
            for (int j = 0; j < l; j++) {
                matrix_B[i][j]=sc.nextInt();
            }
        } int i=0; int i=0; i 0 i<m i m i++ i++ i {
            for (int j = 0; j < l; j++) {
                matrix_B[i][j]=sc.nextInt();
            }
        } {
            for (int j = 0; j < l; j++) {
                matrix_B[i][j]=sc.nextInt();
            }
        } for (int j = 0; j < l; j++) {
                matrix_B[i][j]=sc.nextInt();
            } int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
                matrix_B[i][j]=sc.nextInt();
            } {
                matrix_B[i][j]=sc.nextInt();
            } matrix_B[i][j]=sc.nextInt() matrix_B[i][j] matrix_B[i] matrix_B i j sc.nextInt() sc.nextInt sc for(int i=0;i<n;i++) {
            for (int j = 0; j < l; j++) {
                long C=0;
                for (int k = 0; k < m; k++) {
                    C += matrix_A[i][k] * matrix_B[k][j];
                }
                if(j<l-1)System.out.print(C+" ");
                else System.out.println(C);
            }
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            for (int j = 0; j < l; j++) {
                long C=0;
                for (int k = 0; k < m; k++) {
                    C += matrix_A[i][k] * matrix_B[k][j];
                }
                if(j<l-1)System.out.print(C+" ");
                else System.out.println(C);
            }
        } {
            for (int j = 0; j < l; j++) {
                long C=0;
                for (int k = 0; k < m; k++) {
                    C += matrix_A[i][k] * matrix_B[k][j];
                }
                if(j<l-1)System.out.print(C+" ");
                else System.out.println(C);
            }
        } for (int j = 0; j < l; j++) {
                long C=0;
                for (int k = 0; k < m; k++) {
                    C += matrix_A[i][k] * matrix_B[k][j];
                }
                if(j<l-1)System.out.print(C+" ");
                else System.out.println(C);
            } int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
                long C=0;
                for (int k = 0; k < m; k++) {
                    C += matrix_A[i][k] * matrix_B[k][j];
                }
                if(j<l-1)System.out.print(C+" ");
                else System.out.println(C);
            } {
                long C=0;
                for (int k = 0; k < m; k++) {
                    C += matrix_A[i][k] * matrix_B[k][j];
                }
                if(j<l-1)System.out.print(C+" ");
                else System.out.println(C);
            } long C=0; C 0 for (int k = 0; k < m; k++) {
                    C += matrix_A[i][k] * matrix_B[k][j];
                } int k = 0; int k = 0; k 0 k < m k m k++ k++ k {
                    C += matrix_A[i][k] * matrix_B[k][j];
                } {
                    C += matrix_A[i][k] * matrix_B[k][j];
                } C += matrix_A[i][k] * matrix_B[k][j] C matrix_A[i][k] * matrix_B[k][j] matrix_A[i][k] matrix_A[i] matrix_A i k matrix_B[k][j] matrix_B[k] matrix_B k j if(j<l-1)System.out.print(C+" ");
                else System.out.println(C); j<l-1 j l-1 l 1 System.out.print(C+" ") System.out.print System.out System System.out C+" " C " " System.out.println(C) System.out.println System.out System System.out C String[] args args public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
        int m=sc.nextInt();
        int l=sc.nextInt();
        int matrix_A[][]=new int[n][m];
        int matrix_B[][]=new int[m][l];
        for(int i=0;i<n;i++) {
            for (int j = 0; j < m; j++) {
                matrix_A[i][j]=sc.nextInt();
            }
        }

        for(int i=0;i<m;i++) {
            for (int j = 0; j < l; j++) {
                matrix_B[i][j]=sc.nextInt();
            }
        }


        for(int i=0;i<n;i++) {
            for (int j = 0; j < l; j++) {
                long C=0;
                for (int k = 0; k < m; k++) {
                    C += matrix_A[i][k] * matrix_B[k][j];
                }
                if(j<l-1)System.out.print(C+" ");
                else System.out.println(C);
            }
        }
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
        int m=sc.nextInt();
        int l=sc.nextInt();
        int matrix_A[][]=new int[n][m];
        int matrix_B[][]=new int[m][l];
        for(int i=0;i<n;i++) {
            for (int j = 0; j < m; j++) {
                matrix_A[i][j]=sc.nextInt();
            }
        }

        for(int i=0;i<m;i++) {
            for (int j = 0; j < l; j++) {
                matrix_B[i][j]=sc.nextInt();
            }
        }


        for(int i=0;i<n;i++) {
            for (int j = 0; j < l; j++) {
                long C=0;
                for (int k = 0; k < m; k++) {
                    C += matrix_A[i][k] * matrix_B[k][j];
                }
                if(j<l-1)System.out.print(C+" ");
                else System.out.println(C);
            }
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
        int m=sc.nextInt();
        int l=sc.nextInt();
        int matrix_A[][]=new int[n][m];
        int matrix_B[][]=new int[m][l];
        for(int i=0;i<n;i++) {
            for (int j = 0; j < m; j++) {
                matrix_A[i][j]=sc.nextInt();
            }
        }

        for(int i=0;i<m;i++) {
            for (int j = 0; j < l; j++) {
                matrix_B[i][j]=sc.nextInt();
            }
        }


        for(int i=0;i<n;i++) {
            for (int j = 0; j < l; j++) {
                long C=0;
                for (int k = 0; k < m; k++) {
                    C += matrix_A[i][k] * matrix_B[k][j];
                }
                if(j<l-1)System.out.print(C+" ");
                else System.out.println(C);
            }
        }
    }
}
