import java.util.Scanner;
class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);

        int n = scanner.nextInt();
        int m = scanner.nextInt();
        int l = scanner.nextInt();

        long[][] a = new long[n][m];
        long[][] b = new long[m][l];

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

        int n = scanner.nextInt();
        int m = scanner.nextInt();
        int l = scanner.nextInt();

        long[][] a = new long[n][m];
        long[][] b = new long[m][l];

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

        int n = scanner.nextInt();
        int m = scanner.nextInt();
        int l = scanner.nextInt();

        long[][] a = new long[n][m];
        long[][] b = new long[m][l];

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

        int n = scanner.nextInt();
        int m = scanner.nextInt();
        int l = scanner.nextInt();

        long[][] a = new long[n][m];
        long[][] b = new long[m][l];

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

        int n = scanner.nextInt();
        int m = scanner.nextInt();
        int l = scanner.nextInt();

        long[][] a = new long[n][m];
        long[][] b = new long[m][l];

        for(int i = 0; i < n; i++){
            for(int j = 0; j < m; j++){
                a[i][j] = scanner.nextInt();
            }
        }
        for(int i = 0; i < m; i++){
            for(int j = 0; j < l; j++){
                b[i][j] = scanner.nextInt();
            }
        }
        long product;
        for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
                product = 0;
                for(int k = 0; k < m; k++){
                    product += a[i][k]*b[k][j];
                }
                if(j != l-1)System.out.print(product+" ");
                else System.out.println(product);
            }
        }
    }
}

