public class Main {
    public static void main(String[] args) {

        // ??????????????????????????????.
        // ???????????????????????´??° (?????°??¨?????°) ???????????????.
        java.util.Scanner sc = new java.util.Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int l = sc.nextInt();

        // ?????????????´????????????????????????????.
        // ???????????????????????´??° (?????????????´?) ???????????????.
        int[][] matrix1 = new int[n][m];
        int[][] matrix2 = new int[m][l];
        for (int i = 0; i < n; i ++) {
            for (int j = 0; j < m; j ++) { matrix1[i][j] = sc.nextInt(); }
        }
        for (int i = 0; i < m; i ++) {
            for (int j = 0; j < l; j ++) { matrix2[i][j] = sc.nextInt(); }
        }

        // ???????????????????????????.
        long sum = 0;
        for (int i = 0; i < n; i ++) {
            for (int j = 0; j < l; j ++) {
                sum = 0;
                for (int k = 0; k < m; k ++) { sum += matrix1[i][k] * matrix2[k][j]; }
                System.out.print(sum);
                if (j != l - 1) { System.out.print(" "); }
            }
            System.out.println();
        }
    }
} public class Main {
    public static void main(String[] args) {

        // ??????????????????????????????.
        // ???????????????????????´??° (?????°??¨?????°) ???????????????.
        java.util.Scanner sc = new java.util.Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int l = sc.nextInt();

        // ?????????????´????????????????????????????.
        // ???????????????????????´??° (?????????????´?) ???????????????.
        int[][] matrix1 = new int[n][m];
        int[][] matrix2 = new int[m][l];
        for (int i = 0; i < n; i ++) {
            for (int j = 0; j < m; j ++) { matrix1[i][j] = sc.nextInt(); }
        }
        for (int i = 0; i < m; i ++) {
            for (int j = 0; j < l; j ++) { matrix2[i][j] = sc.nextInt(); }
        }

        // ???????????????????????????.
        long sum = 0;
        for (int i = 0; i < n; i ++) {
            for (int j = 0; j < l; j ++) {
                sum = 0;
                for (int k = 0; k < m; k ++) { sum += matrix1[i][k] * matrix2[k][j]; }
                System.out.print(sum);
                if (j != l - 1) { System.out.print(" "); }
            }
            System.out.println();
        }
    }
} Main public static void main(String[] args) {

        // ??????????????????????????????.
        // ???????????????????????´??° (?????°??¨?????°) ???????????????.
        java.util.Scanner sc = new java.util.Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int l = sc.nextInt();

        // ?????????????´????????????????????????????.
        // ???????????????????????´??° (?????????????´?) ???????????????.
        int[][] matrix1 = new int[n][m];
        int[][] matrix2 = new int[m][l];
        for (int i = 0; i < n; i ++) {
            for (int j = 0; j < m; j ++) { matrix1[i][j] = sc.nextInt(); }
        }
        for (int i = 0; i < m; i ++) {
            for (int j = 0; j < l; j ++) { matrix2[i][j] = sc.nextInt(); }
        }

        // ???????????????????????????.
        long sum = 0;
        for (int i = 0; i < n; i ++) {
            for (int j = 0; j < l; j ++) {
                sum = 0;
                for (int k = 0; k < m; k ++) { sum += matrix1[i][k] * matrix2[k][j]; }
                System.out.print(sum);
                if (j != l - 1) { System.out.print(" "); }
            }
            System.out.println();
        }
    } main {

        // ??????????????????????????????.
        // ???????????????????????´??° (?????°??¨?????°) ???????????????.
        java.util.Scanner sc = new java.util.Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int l = sc.nextInt();

        // ?????????????´????????????????????????????.
        // ???????????????????????´??° (?????????????´?) ???????????????.
        int[][] matrix1 = new int[n][m];
        int[][] matrix2 = new int[m][l];
        for (int i = 0; i < n; i ++) {
            for (int j = 0; j < m; j ++) { matrix1[i][j] = sc.nextInt(); }
        }
        for (int i = 0; i < m; i ++) {
            for (int j = 0; j < l; j ++) { matrix2[i][j] = sc.nextInt(); }
        }

        // ???????????????????????????.
        long sum = 0;
        for (int i = 0; i < n; i ++) {
            for (int j = 0; j < l; j ++) {
                sum = 0;
                for (int k = 0; k < m; k ++) { sum += matrix1[i][k] * matrix2[k][j]; }
                System.out.print(sum);
                if (j != l - 1) { System.out.print(" "); }
            }
            System.out.println();
        }
    } java.util.Scanner sc = new java.util.Scanner(System.in); sc new java.util.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[][] matrix1 = new int[n][m]; matrix1 new int[n][m] n m int[][] matrix2 = new int[m][l]; matrix2 new int[m][l] m l for (int i = 0; i < n; i ++) {
            for (int j = 0; j < m; j ++) { matrix1[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 ++) { matrix1[i][j] = sc.nextInt(); }
        } {
            for (int j = 0; j < m; j ++) { matrix1[i][j] = sc.nextInt(); }
        } for (int j = 0; j < m; j ++) { matrix1[i][j] = sc.nextInt(); } int j = 0; int j = 0; j 0 j < m j m j ++ j ++ j { matrix1[i][j] = sc.nextInt(); } { matrix1[i][j] = sc.nextInt(); } matrix1[i][j] = sc.nextInt() matrix1[i][j] matrix1[i] matrix1 i j sc.nextInt() sc.nextInt sc for (int i = 0; i < m; i ++) {
            for (int j = 0; j < l; j ++) { matrix2[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 ++) { matrix2[i][j] = sc.nextInt(); }
        } {
            for (int j = 0; j < l; j ++) { matrix2[i][j] = sc.nextInt(); }
        } for (int j = 0; j < l; j ++) { matrix2[i][j] = sc.nextInt(); } int j = 0; int j = 0; j 0 j < l j l j ++ j ++ j { matrix2[i][j] = sc.nextInt(); } { matrix2[i][j] = sc.nextInt(); } matrix2[i][j] = sc.nextInt() matrix2[i][j] matrix2[i] matrix2 i j sc.nextInt() sc.nextInt sc long sum = 0; sum 0 for (int i = 0; i < n; i ++) {
            for (int j = 0; j < l; j ++) {
                sum = 0;
                for (int k = 0; k < m; k ++) { sum += matrix1[i][k] * matrix2[k][j]; }
                System.out.print(sum);
                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 ++) {
                sum = 0;
                for (int k = 0; k < m; k ++) { sum += matrix1[i][k] * matrix2[k][j]; }
                System.out.print(sum);
                if (j != l - 1) { System.out.print(" "); }
            }
            System.out.println();
        } {
            for (int j = 0; j < l; j ++) {
                sum = 0;
                for (int k = 0; k < m; k ++) { sum += matrix1[i][k] * matrix2[k][j]; }
                System.out.print(sum);
                if (j != l - 1) { System.out.print(" "); }
            }
            System.out.println();
        } for (int j = 0; j < l; j ++) {
                sum = 0;
                for (int k = 0; k < m; k ++) { sum += matrix1[i][k] * matrix2[k][j]; }
                System.out.print(sum);
                if (j != l - 1) { System.out.print(" "); }
            } int j = 0; int j = 0; j 0 j < l j l j ++ j ++ j {
                sum = 0;
                for (int k = 0; k < m; k ++) { sum += matrix1[i][k] * matrix2[k][j]; }
                System.out.print(sum);
                if (j != l - 1) { System.out.print(" "); }
            } {
                sum = 0;
                for (int k = 0; k < m; k ++) { sum += matrix1[i][k] * matrix2[k][j]; }
                System.out.print(sum);
                if (j != l - 1) { System.out.print(" "); }
            } sum = 0 sum 0 for (int k = 0; k < m; k ++) { sum += matrix1[i][k] * matrix2[k][j]; } int k = 0; int k = 0; k 0 k < m k m k ++ k ++ k { sum += matrix1[i][k] * matrix2[k][j]; } { sum += matrix1[i][k] * matrix2[k][j]; } sum += matrix1[i][k] * matrix2[k][j] sum matrix1[i][k] * matrix2[k][j] matrix1[i][k] matrix1[i] matrix1 i k matrix2[k][j] matrix2[k] matrix2 k j System.out.print(sum) System.out.print System.out System System.out sum 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) {

        // ??????????????????????????????.
        // ???????????????????????´??° (?????°??¨?????°) ???????????????.
        java.util.Scanner sc = new java.util.Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int l = sc.nextInt();

        // ?????????????´????????????????????????????.
        // ???????????????????????´??° (?????????????´?) ???????????????.
        int[][] matrix1 = new int[n][m];
        int[][] matrix2 = new int[m][l];
        for (int i = 0; i < n; i ++) {
            for (int j = 0; j < m; j ++) { matrix1[i][j] = sc.nextInt(); }
        }
        for (int i = 0; i < m; i ++) {
            for (int j = 0; j < l; j ++) { matrix2[i][j] = sc.nextInt(); }
        }

        // ???????????????????????????.
        long sum = 0;
        for (int i = 0; i < n; i ++) {
            for (int j = 0; j < l; j ++) {
                sum = 0;
                for (int k = 0; k < m; k ++) { sum += matrix1[i][k] * matrix2[k][j]; }
                System.out.print(sum);
                if (j != l - 1) { System.out.print(" "); }
            }
            System.out.println();
        }
    }
} public class Main {
    public static void main(String[] args) {

        // ??????????????????????????????.
        // ???????????????????????´??° (?????°??¨?????°) ???????????????.
        java.util.Scanner sc = new java.util.Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int l = sc.nextInt();

        // ?????????????´????????????????????????????.
        // ???????????????????????´??° (?????????????´?) ???????????????.
        int[][] matrix1 = new int[n][m];
        int[][] matrix2 = new int[m][l];
        for (int i = 0; i < n; i ++) {
            for (int j = 0; j < m; j ++) { matrix1[i][j] = sc.nextInt(); }
        }
        for (int i = 0; i < m; i ++) {
            for (int j = 0; j < l; j ++) { matrix2[i][j] = sc.nextInt(); }
        }

        // ???????????????????????????.
        long sum = 0;
        for (int i = 0; i < n; i ++) {
            for (int j = 0; j < l; j ++) {
                sum = 0;
                for (int k = 0; k < m; k ++) { sum += matrix1[i][k] * matrix2[k][j]; }
                System.out.print(sum);
                if (j != l - 1) { System.out.print(" "); }
            }
            System.out.println();
        }
    }
} Main
public class Main {
    public static void main(String[] args) {

        // ??????????????????????????????.
        // ???????????????????????´??° (?????°??¨?????°) ???????????????.
        java.util.Scanner sc = new java.util.Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int l = sc.nextInt();

        // ?????????????´????????????????????????????.
        // ???????????????????????´??° (?????????????´?) ???????????????.
        int[][] matrix1 = new int[n][m];
        int[][] matrix2 = new int[m][l];
        for (int i = 0; i < n; i ++) {
            for (int j = 0; j < m; j ++) { matrix1[i][j] = sc.nextInt(); }
        }
        for (int i = 0; i < m; i ++) {
            for (int j = 0; j < l; j ++) { matrix2[i][j] = sc.nextInt(); }
        }

        // ???????????????????????????.
        long sum = 0;
        for (int i = 0; i < n; i ++) {
            for (int j = 0; j < l; j ++) {
                sum = 0;
                for (int k = 0; k < m; k ++) { sum += matrix1[i][k] * matrix2[k][j]; }
                System.out.print(sum);
                if (j != l - 1) { System.out.print(" "); }
            }
            System.out.println();
        }
    }
}