import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc;// = new Scanner(System.in);
        sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int l = sc.nextInt();
        int A[][] = new int[n][m];
        int B[][] = new int[m][l];
        long C[][] = new long[n][l];
        for(int x = 0;x<n;x++){
            sc.nextLine();
            for(int y = 0;y<m;y++){
                A[x][y] = sc.nextInt();
            }
        }

        for(int x = 0;x<m;x++){
            sc.nextLine();
            for(int y = 0;y<l;y++){
                B[x][y] = sc.nextInt();
            }
        }

        for(int x = 0;x<n;x++){
            for(int y = 0;y<l;y++){
                C[x][y] = 0;
                for(int z = 0;z<m;z++){
                    C[x][y] += A[x][z]*B[z][y];
                }
                if(y == 0){
                    System.out.print(C[x][y]);
                }else{
                    System.out.print(" "+C[x][y]);
                }
            }
            System.out.println();
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc;// = new Scanner(System.in);
        sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int l = sc.nextInt();
        int A[][] = new int[n][m];
        int B[][] = new int[m][l];
        long C[][] = new long[n][l];
        for(int x = 0;x<n;x++){
            sc.nextLine();
            for(int y = 0;y<m;y++){
                A[x][y] = sc.nextInt();
            }
        }

        for(int x = 0;x<m;x++){
            sc.nextLine();
            for(int y = 0;y<l;y++){
                B[x][y] = sc.nextInt();
            }
        }

        for(int x = 0;x<n;x++){
            for(int y = 0;y<l;y++){
                C[x][y] = 0;
                for(int z = 0;z<m;z++){
                    C[x][y] += A[x][z]*B[z][y];
                }
                if(y == 0){
                    System.out.print(C[x][y]);
                }else{
                    System.out.print(" "+C[x][y]);
                }
            }
            System.out.println();
        }
    }
} Main public static void main(String[] args) {
        Scanner sc;// = new Scanner(System.in);
        sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int l = sc.nextInt();
        int A[][] = new int[n][m];
        int B[][] = new int[m][l];
        long C[][] = new long[n][l];
        for(int x = 0;x<n;x++){
            sc.nextLine();
            for(int y = 0;y<m;y++){
                A[x][y] = sc.nextInt();
            }
        }

        for(int x = 0;x<m;x++){
            sc.nextLine();
            for(int y = 0;y<l;y++){
                B[x][y] = sc.nextInt();
            }
        }

        for(int x = 0;x<n;x++){
            for(int y = 0;y<l;y++){
                C[x][y] = 0;
                for(int z = 0;z<m;z++){
                    C[x][y] += A[x][z]*B[z][y];
                }
                if(y == 0){
                    System.out.print(C[x][y]);
                }else{
                    System.out.print(" "+C[x][y]);
                }
            }
            System.out.println();
        }
    } main {
        Scanner sc;// = new Scanner(System.in);
        sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int l = sc.nextInt();
        int A[][] = new int[n][m];
        int B[][] = new int[m][l];
        long C[][] = new long[n][l];
        for(int x = 0;x<n;x++){
            sc.nextLine();
            for(int y = 0;y<m;y++){
                A[x][y] = sc.nextInt();
            }
        }

        for(int x = 0;x<m;x++){
            sc.nextLine();
            for(int y = 0;y<l;y++){
                B[x][y] = sc.nextInt();
            }
        }

        for(int x = 0;x<n;x++){
            for(int y = 0;y<l;y++){
                C[x][y] = 0;
                for(int z = 0;z<m;z++){
                    C[x][y] += A[x][z]*B[z][y];
                }
                if(y == 0){
                    System.out.print(C[x][y]);
                }else{
                    System.out.print(" "+C[x][y]);
                }
            }
            System.out.println();
        }
    } Scanner sc; sc 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 A[][] = new int[n][m]; A new int[n][m] n m int B[][] = new int[m][l]; B new int[m][l] m l long C[][] = new long[n][l]; C new long[n][l] n l for(int x = 0;x<n;x++){
            sc.nextLine();
            for(int y = 0;y<m;y++){
                A[x][y] = sc.nextInt();
            }
        } int x = 0; int x = 0; x 0 x<n x n x++ x++ x {
            sc.nextLine();
            for(int y = 0;y<m;y++){
                A[x][y] = sc.nextInt();
            }
        } {
            sc.nextLine();
            for(int y = 0;y<m;y++){
                A[x][y] = sc.nextInt();
            }
        } sc.nextLine() sc.nextLine sc for(int y = 0;y<m;y++){
                A[x][y] = sc.nextInt();
            } int y = 0; int y = 0; y 0 y<m y m y++ y++ y {
                A[x][y] = sc.nextInt();
            } {
                A[x][y] = sc.nextInt();
            } A[x][y] = sc.nextInt() A[x][y] A[x] A x y sc.nextInt() sc.nextInt sc for(int x = 0;x<m;x++){
            sc.nextLine();
            for(int y = 0;y<l;y++){
                B[x][y] = sc.nextInt();
            }
        } int x = 0; int x = 0; x 0 x<m x m x++ x++ x {
            sc.nextLine();
            for(int y = 0;y<l;y++){
                B[x][y] = sc.nextInt();
            }
        } {
            sc.nextLine();
            for(int y = 0;y<l;y++){
                B[x][y] = sc.nextInt();
            }
        } sc.nextLine() sc.nextLine sc for(int y = 0;y<l;y++){
                B[x][y] = sc.nextInt();
            } int y = 0; int y = 0; y 0 y<l y l y++ y++ y {
                B[x][y] = sc.nextInt();
            } {
                B[x][y] = sc.nextInt();
            } B[x][y] = sc.nextInt() B[x][y] B[x] B x y sc.nextInt() sc.nextInt sc for(int x = 0;x<n;x++){
            for(int y = 0;y<l;y++){
                C[x][y] = 0;
                for(int z = 0;z<m;z++){
                    C[x][y] += A[x][z]*B[z][y];
                }
                if(y == 0){
                    System.out.print(C[x][y]);
                }else{
                    System.out.print(" "+C[x][y]);
                }
            }
            System.out.println();
        } int x = 0; int x = 0; x 0 x<n x n x++ x++ x {
            for(int y = 0;y<l;y++){
                C[x][y] = 0;
                for(int z = 0;z<m;z++){
                    C[x][y] += A[x][z]*B[z][y];
                }
                if(y == 0){
                    System.out.print(C[x][y]);
                }else{
                    System.out.print(" "+C[x][y]);
                }
            }
            System.out.println();
        } {
            for(int y = 0;y<l;y++){
                C[x][y] = 0;
                for(int z = 0;z<m;z++){
                    C[x][y] += A[x][z]*B[z][y];
                }
                if(y == 0){
                    System.out.print(C[x][y]);
                }else{
                    System.out.print(" "+C[x][y]);
                }
            }
            System.out.println();
        } for(int y = 0;y<l;y++){
                C[x][y] = 0;
                for(int z = 0;z<m;z++){
                    C[x][y] += A[x][z]*B[z][y];
                }
                if(y == 0){
                    System.out.print(C[x][y]);
                }else{
                    System.out.print(" "+C[x][y]);
                }
            } int y = 0; int y = 0; y 0 y<l y l y++ y++ y {
                C[x][y] = 0;
                for(int z = 0;z<m;z++){
                    C[x][y] += A[x][z]*B[z][y];
                }
                if(y == 0){
                    System.out.print(C[x][y]);
                }else{
                    System.out.print(" "+C[x][y]);
                }
            } {
                C[x][y] = 0;
                for(int z = 0;z<m;z++){
                    C[x][y] += A[x][z]*B[z][y];
                }
                if(y == 0){
                    System.out.print(C[x][y]);
                }else{
                    System.out.print(" "+C[x][y]);
                }
            } C[x][y] = 0 C[x][y] C[x] C x y 0 for(int z = 0;z<m;z++){
                    C[x][y] += A[x][z]*B[z][y];
                } int z = 0; int z = 0; z 0 z<m z m z++ z++ z {
                    C[x][y] += A[x][z]*B[z][y];
                } {
                    C[x][y] += A[x][z]*B[z][y];
                } C[x][y] += A[x][z]*B[z][y] C[x][y] C[x] C x y A[x][z]*B[z][y] A[x][z] A[x] A x z B[z][y] B[z] B z y if(y == 0){
                    System.out.print(C[x][y]);
                }else{
                    System.out.print(" "+C[x][y]);
                } y == 0 y 0 {
                    System.out.print(C[x][y]);
                } System.out.print(C[x][y]) System.out.print System.out System System.out C[x][y] C[x] C x y {
                    System.out.print(" "+C[x][y]);
                } System.out.print(" "+C[x][y]) System.out.print System.out System System.out " "+C[x][y] " " C[x][y] C[x] C x y System.out.println() System.out.println System.out System System.out String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc;// = new Scanner(System.in);
        sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int l = sc.nextInt();
        int A[][] = new int[n][m];
        int B[][] = new int[m][l];
        long C[][] = new long[n][l];
        for(int x = 0;x<n;x++){
            sc.nextLine();
            for(int y = 0;y<m;y++){
                A[x][y] = sc.nextInt();
            }
        }

        for(int x = 0;x<m;x++){
            sc.nextLine();
            for(int y = 0;y<l;y++){
                B[x][y] = sc.nextInt();
            }
        }

        for(int x = 0;x<n;x++){
            for(int y = 0;y<l;y++){
                C[x][y] = 0;
                for(int z = 0;z<m;z++){
                    C[x][y] += A[x][z]*B[z][y];
                }
                if(y == 0){
                    System.out.print(C[x][y]);
                }else{
                    System.out.print(" "+C[x][y]);
                }
            }
            System.out.println();
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc;// = new Scanner(System.in);
        sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int l = sc.nextInt();
        int A[][] = new int[n][m];
        int B[][] = new int[m][l];
        long C[][] = new long[n][l];
        for(int x = 0;x<n;x++){
            sc.nextLine();
            for(int y = 0;y<m;y++){
                A[x][y] = sc.nextInt();
            }
        }

        for(int x = 0;x<m;x++){
            sc.nextLine();
            for(int y = 0;y<l;y++){
                B[x][y] = sc.nextInt();
            }
        }

        for(int x = 0;x<n;x++){
            for(int y = 0;y<l;y++){
                C[x][y] = 0;
                for(int z = 0;z<m;z++){
                    C[x][y] += A[x][z]*B[z][y];
                }
                if(y == 0){
                    System.out.print(C[x][y]);
                }else{
                    System.out.print(" "+C[x][y]);
                }
            }
            System.out.println();
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc;// = new Scanner(System.in);
        sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int l = sc.nextInt();
        int A[][] = new int[n][m];
        int B[][] = new int[m][l];
        long C[][] = new long[n][l];
        for(int x = 0;x<n;x++){
            sc.nextLine();
            for(int y = 0;y<m;y++){
                A[x][y] = sc.nextInt();
            }
        }

        for(int x = 0;x<m;x++){
            sc.nextLine();
            for(int y = 0;y<l;y++){
                B[x][y] = sc.nextInt();
            }
        }

        for(int x = 0;x<n;x++){
            for(int y = 0;y<l;y++){
                C[x][y] = 0;
                for(int z = 0;z<m;z++){
                    C[x][y] += A[x][z]*B[z][y];
                }
                if(y == 0){
                    System.out.print(C[x][y]);
                }else{
                    System.out.print(" "+C[x][y]);
                }
            }
            System.out.println();
        }
    }
}
