import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] lines = br.readLine().split(" ");
        int n = Integer.parseInt(lines[0]);
        int m = Integer.parseInt(lines[1]);
        int l = Integer.parseInt(lines[2]);
        long[][] matrix1 = new long[n][m];
        long[][] matrix2 = new long[m][l];
        long[][] matrix3 = new long[n][l];
        createMatrix(br, n, m, matrix1);
        createMatrix(br, m, l, matrix2);
        for(int i=0;i<n;i++){
            for(int j=0;j<l;j++){
                for(int k=0;k<m;k++){
                    matrix3[i][j]+=matrix1[i][k]*matrix2[k][j];
                }
            }
        }
        for(int i=0;i<n;i++){
            for(int j=0;j<l;j++){
                System.out.print(matrix3[i][j]);
                if(j<l-1)
                    System.out.print(" ");
            }
            
            System.out.println();
        }

    }

    private static void createMatrix(BufferedReader br, int n, int m, long[][] matrix1) throws IOException {
        String[] lines;
        for (int i = 0; i < n; i++) {
            lines = br.readLine().split(" ");
            for (int j = 0; j < m; j++) {
                matrix1[i][j] = Long.parseLong(lines[j]);
            }
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] lines = br.readLine().split(" ");
        int n = Integer.parseInt(lines[0]);
        int m = Integer.parseInt(lines[1]);
        int l = Integer.parseInt(lines[2]);
        long[][] matrix1 = new long[n][m];
        long[][] matrix2 = new long[m][l];
        long[][] matrix3 = new long[n][l];
        createMatrix(br, n, m, matrix1);
        createMatrix(br, m, l, matrix2);
        for(int i=0;i<n;i++){
            for(int j=0;j<l;j++){
                for(int k=0;k<m;k++){
                    matrix3[i][j]+=matrix1[i][k]*matrix2[k][j];
                }
            }
        }
        for(int i=0;i<n;i++){
            for(int j=0;j<l;j++){
                System.out.print(matrix3[i][j]);
                if(j<l-1)
                    System.out.print(" ");
            }
            
            System.out.println();
        }

    }

    private static void createMatrix(BufferedReader br, int n, int m, long[][] matrix1) throws IOException {
        String[] lines;
        for (int i = 0; i < n; i++) {
            lines = br.readLine().split(" ");
            for (int j = 0; j < m; j++) {
                matrix1[i][j] = Long.parseLong(lines[j]);
            }
        }
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] lines = br.readLine().split(" ");
        int n = Integer.parseInt(lines[0]);
        int m = Integer.parseInt(lines[1]);
        int l = Integer.parseInt(lines[2]);
        long[][] matrix1 = new long[n][m];
        long[][] matrix2 = new long[m][l];
        long[][] matrix3 = new long[n][l];
        createMatrix(br, n, m, matrix1);
        createMatrix(br, m, l, matrix2);
        for(int i=0;i<n;i++){
            for(int j=0;j<l;j++){
                for(int k=0;k<m;k++){
                    matrix3[i][j]+=matrix1[i][k]*matrix2[k][j];
                }
            }
        }
        for(int i=0;i<n;i++){
            for(int j=0;j<l;j++){
                System.out.print(matrix3[i][j]);
                if(j<l-1)
                    System.out.print(" ");
            }
            
            System.out.println();
        }

    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] lines = br.readLine().split(" ");
        int n = Integer.parseInt(lines[0]);
        int m = Integer.parseInt(lines[1]);
        int l = Integer.parseInt(lines[2]);
        long[][] matrix1 = new long[n][m];
        long[][] matrix2 = new long[m][l];
        long[][] matrix3 = new long[n][l];
        createMatrix(br, n, m, matrix1);
        createMatrix(br, m, l, matrix2);
        for(int i=0;i<n;i++){
            for(int j=0;j<l;j++){
                for(int k=0;k<m;k++){
                    matrix3[i][j]+=matrix1[i][k]*matrix2[k][j];
                }
            }
        }
        for(int i=0;i<n;i++){
            for(int j=0;j<l;j++){
                System.out.print(matrix3[i][j]);
                if(j<l-1)
                    System.out.print(" ");
            }
            
            System.out.println();
        }

    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] lines = br.readLine().split(" "); lines br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int n = Integer.parseInt(lines[0]); n Integer.parseInt(lines[0]) Integer.parseInt Integer lines[0] lines 0 int m = Integer.parseInt(lines[1]); m Integer.parseInt(lines[1]) Integer.parseInt Integer lines[1] lines 1 int l = Integer.parseInt(lines[2]); l Integer.parseInt(lines[2]) Integer.parseInt Integer lines[2] lines 2 long[][] matrix1 = new long[n][m]; matrix1 new long[n][m] n m long[][] matrix2 = new long[m][l]; matrix2 new long[m][l] m l long[][] matrix3 = new long[n][l]; matrix3 new long[n][l] n l createMatrix(br, n, m, matrix1) createMatrix br n m matrix1 createMatrix(br, m, l, matrix2) createMatrix br m l matrix2 for(int i=0;i<n;i++){
            for(int j=0;j<l;j++){
                for(int k=0;k<m;k++){
                    matrix3[i][j]+=matrix1[i][k]*matrix2[k][j];
                }
            }
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            for(int j=0;j<l;j++){
                for(int k=0;k<m;k++){
                    matrix3[i][j]+=matrix1[i][k]*matrix2[k][j];
                }
            }
        } {
            for(int j=0;j<l;j++){
                for(int k=0;k<m;k++){
                    matrix3[i][j]+=matrix1[i][k]*matrix2[k][j];
                }
            }
        } for(int j=0;j<l;j++){
                for(int k=0;k<m;k++){
                    matrix3[i][j]+=matrix1[i][k]*matrix2[k][j];
                }
            } int j=0; int j=0; j 0 j<l j l j++ j++ j {
                for(int k=0;k<m;k++){
                    matrix3[i][j]+=matrix1[i][k]*matrix2[k][j];
                }
            } {
                for(int k=0;k<m;k++){
                    matrix3[i][j]+=matrix1[i][k]*matrix2[k][j];
                }
            } for(int k=0;k<m;k++){
                    matrix3[i][j]+=matrix1[i][k]*matrix2[k][j];
                } int k=0; int k=0; k 0 k<m k m k++ k++ k {
                    matrix3[i][j]+=matrix1[i][k]*matrix2[k][j];
                } {
                    matrix3[i][j]+=matrix1[i][k]*matrix2[k][j];
                } matrix3[i][j]+=matrix1[i][k]*matrix2[k][j] matrix3[i][j] matrix3[i] matrix3 i j matrix1[i][k]*matrix2[k][j] matrix1[i][k] matrix1[i] matrix1 i k matrix2[k][j] matrix2[k] matrix2 k j for(int i=0;i<n;i++){
            for(int j=0;j<l;j++){
                System.out.print(matrix3[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(matrix3[i][j]);
                if(j<l-1)
                    System.out.print(" ");
            }
            
            System.out.println();
        } {
            for(int j=0;j<l;j++){
                System.out.print(matrix3[i][j]);
                if(j<l-1)
                    System.out.print(" ");
            }
            
            System.out.println();
        } for(int j=0;j<l;j++){
                System.out.print(matrix3[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(matrix3[i][j]);
                if(j<l-1)
                    System.out.print(" ");
            } {
                System.out.print(matrix3[i][j]);
                if(j<l-1)
                    System.out.print(" ");
            } System.out.print(matrix3[i][j]) System.out.print System.out System System.out matrix3[i][j] matrix3[i] matrix3 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 System System.out " " System.out.println() System.out.println System.out System System.out String[] args args private static void createMatrix(BufferedReader br, int n, int m, long[][] matrix1) throws IOException {
        String[] lines;
        for (int i = 0; i < n; i++) {
            lines = br.readLine().split(" ");
            for (int j = 0; j < m; j++) {
                matrix1[i][j] = Long.parseLong(lines[j]);
            }
        }
    } createMatrix {
        String[] lines;
        for (int i = 0; i < n; i++) {
            lines = br.readLine().split(" ");
            for (int j = 0; j < m; j++) {
                matrix1[i][j] = Long.parseLong(lines[j]);
            }
        }
    } String[] lines; lines for (int i = 0; i < n; i++) {
            lines = br.readLine().split(" ");
            for (int j = 0; j < m; j++) {
                matrix1[i][j] = Long.parseLong(lines[j]);
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            lines = br.readLine().split(" ");
            for (int j = 0; j < m; j++) {
                matrix1[i][j] = Long.parseLong(lines[j]);
            }
        } {
            lines = br.readLine().split(" ");
            for (int j = 0; j < m; j++) {
                matrix1[i][j] = Long.parseLong(lines[j]);
            }
        } lines = br.readLine().split(" ") lines br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " for (int j = 0; j < m; j++) {
                matrix1[i][j] = Long.parseLong(lines[j]);
            } int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
                matrix1[i][j] = Long.parseLong(lines[j]);
            } {
                matrix1[i][j] = Long.parseLong(lines[j]);
            } matrix1[i][j] = Long.parseLong(lines[j]) matrix1[i][j] matrix1[i] matrix1 i j Long.parseLong(lines[j]) Long.parseLong Long lines[j] lines j BufferedReader br br int n n int m m long[][] matrix1 matrix1 public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] lines = br.readLine().split(" ");
        int n = Integer.parseInt(lines[0]);
        int m = Integer.parseInt(lines[1]);
        int l = Integer.parseInt(lines[2]);
        long[][] matrix1 = new long[n][m];
        long[][] matrix2 = new long[m][l];
        long[][] matrix3 = new long[n][l];
        createMatrix(br, n, m, matrix1);
        createMatrix(br, m, l, matrix2);
        for(int i=0;i<n;i++){
            for(int j=0;j<l;j++){
                for(int k=0;k<m;k++){
                    matrix3[i][j]+=matrix1[i][k]*matrix2[k][j];
                }
            }
        }
        for(int i=0;i<n;i++){
            for(int j=0;j<l;j++){
                System.out.print(matrix3[i][j]);
                if(j<l-1)
                    System.out.print(" ");
            }
            
            System.out.println();
        }

    }

    private static void createMatrix(BufferedReader br, int n, int m, long[][] matrix1) throws IOException {
        String[] lines;
        for (int i = 0; i < n; i++) {
            lines = br.readLine().split(" ");
            for (int j = 0; j < m; j++) {
                matrix1[i][j] = Long.parseLong(lines[j]);
            }
        }
    }
} public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] lines = br.readLine().split(" ");
        int n = Integer.parseInt(lines[0]);
        int m = Integer.parseInt(lines[1]);
        int l = Integer.parseInt(lines[2]);
        long[][] matrix1 = new long[n][m];
        long[][] matrix2 = new long[m][l];
        long[][] matrix3 = new long[n][l];
        createMatrix(br, n, m, matrix1);
        createMatrix(br, m, l, matrix2);
        for(int i=0;i<n;i++){
            for(int j=0;j<l;j++){
                for(int k=0;k<m;k++){
                    matrix3[i][j]+=matrix1[i][k]*matrix2[k][j];
                }
            }
        }
        for(int i=0;i<n;i++){
            for(int j=0;j<l;j++){
                System.out.print(matrix3[i][j]);
                if(j<l-1)
                    System.out.print(" ");
            }
            
            System.out.println();
        }

    }

    private static void createMatrix(BufferedReader br, int n, int m, long[][] matrix1) throws IOException {
        String[] lines;
        for (int i = 0; i < n; i++) {
            lines = br.readLine().split(" ");
            for (int j = 0; j < m; j++) {
                matrix1[i][j] = Long.parseLong(lines[j]);
            }
        }
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] lines = br.readLine().split(" ");
        int n = Integer.parseInt(lines[0]);
        int m = Integer.parseInt(lines[1]);
        int l = Integer.parseInt(lines[2]);
        long[][] matrix1 = new long[n][m];
        long[][] matrix2 = new long[m][l];
        long[][] matrix3 = new long[n][l];
        createMatrix(br, n, m, matrix1);
        createMatrix(br, m, l, matrix2);
        for(int i=0;i<n;i++){
            for(int j=0;j<l;j++){
                for(int k=0;k<m;k++){
                    matrix3[i][j]+=matrix1[i][k]*matrix2[k][j];
                }
            }
        }
        for(int i=0;i<n;i++){
            for(int j=0;j<l;j++){
                System.out.print(matrix3[i][j]);
                if(j<l-1)
                    System.out.print(" ");
            }
            
            System.out.println();
        }

    }

    private static void createMatrix(BufferedReader br, int n, int m, long[][] matrix1) throws IOException {
        String[] lines;
        for (int i = 0; i < n; i++) {
            lines = br.readLine().split(" ");
            for (int j = 0; j < m; j++) {
                matrix1[i][j] = Long.parseLong(lines[j]);
            }
        }
    }
}