import java.io.*;

public class Main{
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] line = br.readLine().split(" ");
        int n = Integer.parseInt(line[0]);
        int m = Integer.parseInt(line[1]);
        int l = Integer.parseInt(line[2]);
        int[][] a = new int[n][m];
        int[][] b = new int[m][l];
        long[][] c = new long[n][l];

        for(int i = 0; i < n; i++){
            line = br.readLine().split(" ");
            for(int j = 0; j < m; j++){
                a[i][j] = Integer.parseInt(line[j]);
            }
        }

        for(int i = 0; i < m; i++){
            line = br.readLine().split(" ");
            for(int j = 0; j < l; j++){
                b[i][j] = Integer.parseInt(line[j]);
            }
        }

        for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
                for(int k = 0; k < m; k++)
                    c[i][j] += a[i][k] * b[k][j];
            }
        }

        for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
                System.out.print(c[i][j]);
                if(j != l-1)
                    System.out.print(" ");
            }
            System.out.print("\n");
        }
    }
} import java.io.*; io.* java public class Main{
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] line = br.readLine().split(" ");
        int n = Integer.parseInt(line[0]);
        int m = Integer.parseInt(line[1]);
        int l = Integer.parseInt(line[2]);
        int[][] a = new int[n][m];
        int[][] b = new int[m][l];
        long[][] c = new long[n][l];

        for(int i = 0; i < n; i++){
            line = br.readLine().split(" ");
            for(int j = 0; j < m; j++){
                a[i][j] = Integer.parseInt(line[j]);
            }
        }

        for(int i = 0; i < m; i++){
            line = br.readLine().split(" ");
            for(int j = 0; j < l; j++){
                b[i][j] = Integer.parseInt(line[j]);
            }
        }

        for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
                for(int k = 0; k < m; k++)
                    c[i][j] += a[i][k] * b[k][j];
            }
        }

        for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
                System.out.print(c[i][j]);
                if(j != l-1)
                    System.out.print(" ");
            }
            System.out.print("\n");
        }
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] line = br.readLine().split(" ");
        int n = Integer.parseInt(line[0]);
        int m = Integer.parseInt(line[1]);
        int l = Integer.parseInt(line[2]);
        int[][] a = new int[n][m];
        int[][] b = new int[m][l];
        long[][] c = new long[n][l];

        for(int i = 0; i < n; i++){
            line = br.readLine().split(" ");
            for(int j = 0; j < m; j++){
                a[i][j] = Integer.parseInt(line[j]);
            }
        }

        for(int i = 0; i < m; i++){
            line = br.readLine().split(" ");
            for(int j = 0; j < l; j++){
                b[i][j] = Integer.parseInt(line[j]);
            }
        }

        for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
                for(int k = 0; k < m; k++)
                    c[i][j] += a[i][k] * b[k][j];
            }
        }

        for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
                System.out.print(c[i][j]);
                if(j != l-1)
                    System.out.print(" ");
            }
            System.out.print("\n");
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] line = br.readLine().split(" ");
        int n = Integer.parseInt(line[0]);
        int m = Integer.parseInt(line[1]);
        int l = Integer.parseInt(line[2]);
        int[][] a = new int[n][m];
        int[][] b = new int[m][l];
        long[][] c = new long[n][l];

        for(int i = 0; i < n; i++){
            line = br.readLine().split(" ");
            for(int j = 0; j < m; j++){
                a[i][j] = Integer.parseInt(line[j]);
            }
        }

        for(int i = 0; i < m; i++){
            line = br.readLine().split(" ");
            for(int j = 0; j < l; j++){
                b[i][j] = Integer.parseInt(line[j]);
            }
        }

        for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
                for(int k = 0; k < m; k++)
                    c[i][j] += a[i][k] * b[k][j];
            }
        }

        for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
                System.out.print(c[i][j]);
                if(j != l-1)
                    System.out.print(" ");
            }
            System.out.print("\n");
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] line = br.readLine().split(" "); line br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int n = Integer.parseInt(line[0]); n Integer.parseInt(line[0]) Integer.parseInt Integer line[0] line 0 int m = Integer.parseInt(line[1]); m Integer.parseInt(line[1]) Integer.parseInt Integer line[1] line 1 int l = Integer.parseInt(line[2]); l Integer.parseInt(line[2]) Integer.parseInt Integer line[2] line 2 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 i = 0; i < n; i++){
            line = br.readLine().split(" ");
            for(int j = 0; j < m; j++){
                a[i][j] = Integer.parseInt(line[j]);
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            line = br.readLine().split(" ");
            for(int j = 0; j < m; j++){
                a[i][j] = Integer.parseInt(line[j]);
            }
        } {
            line = br.readLine().split(" ");
            for(int j = 0; j < m; j++){
                a[i][j] = Integer.parseInt(line[j]);
            }
        } line = br.readLine().split(" ") line br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " for(int j = 0; j < m; j++){
                a[i][j] = Integer.parseInt(line[j]);
            } int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
                a[i][j] = Integer.parseInt(line[j]);
            } {
                a[i][j] = Integer.parseInt(line[j]);
            } a[i][j] = Integer.parseInt(line[j]) a[i][j] a[i] a i j Integer.parseInt(line[j]) Integer.parseInt Integer line[j] line j for(int i = 0; i < m; i++){
            line = br.readLine().split(" ");
            for(int j = 0; j < l; j++){
                b[i][j] = Integer.parseInt(line[j]);
            }
        } int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
            line = br.readLine().split(" ");
            for(int j = 0; j < l; j++){
                b[i][j] = Integer.parseInt(line[j]);
            }
        } {
            line = br.readLine().split(" ");
            for(int j = 0; j < l; j++){
                b[i][j] = Integer.parseInt(line[j]);
            }
        } line = br.readLine().split(" ") line br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " for(int j = 0; j < l; j++){
                b[i][j] = Integer.parseInt(line[j]);
            } int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
                b[i][j] = Integer.parseInt(line[j]);
            } {
                b[i][j] = Integer.parseInt(line[j]);
            } b[i][j] = Integer.parseInt(line[j]) b[i][j] b[i] b i j Integer.parseInt(line[j]) Integer.parseInt Integer line[j] line j for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
                for(int k = 0; k < m; k++)
                    c[i][j] += a[i][k] * b[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++)
                    c[i][j] += a[i][k] * b[k][j];
            }
        } {
            for(int j = 0; j < l; j++){
                for(int k = 0; k < m; k++)
                    c[i][j] += a[i][k] * b[k][j];
            }
        } for(int j = 0; j < l; j++){
                for(int k = 0; k < m; k++)
                    c[i][j] += a[i][k] * b[k][j];
            } int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
                for(int k = 0; k < m; k++)
                    c[i][j] += a[i][k] * b[k][j];
            } {
                for(int k = 0; k < m; k++)
                    c[i][j] += a[i][k] * b[k][j];
            } for(int k = 0; k < m; k++)
                    c[i][j] += a[i][k] * b[k][j]; int k = 0; int k = 0; k 0 k < m k m k++ k++ k c[i][j] += a[i][k] * b[k][j]; c[i][j] += a[i][k] * b[k][j] c[i][j] c[i] c i j a[i][k] * b[k][j] a[i][k] a[i] a i k b[k][j] b[k] b k j for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
                System.out.print(c[i][j]);
                if(j != l-1)
                    System.out.print(" ");
            }
            System.out.print("\n");
        } 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(c[i][j]);
                if(j != l-1)
                    System.out.print(" ");
            }
            System.out.print("\n");
        } {
            for(int j = 0; j < l; j++){
                System.out.print(c[i][j]);
                if(j != l-1)
                    System.out.print(" ");
            }
            System.out.print("\n");
        } for(int j = 0; j < l; j++){
                System.out.print(c[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(c[i][j]);
                if(j != l-1)
                    System.out.print(" ");
            } {
                System.out.print(c[i][j]);
                if(j != l-1)
                    System.out.print(" ");
            } System.out.print(c[i][j]) System.out.print System.out System System.out c[i][j] c[i] c 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.print("\n") System.out.print System.out System System.out "\n" String[] args args public class Main{
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] line = br.readLine().split(" ");
        int n = Integer.parseInt(line[0]);
        int m = Integer.parseInt(line[1]);
        int l = Integer.parseInt(line[2]);
        int[][] a = new int[n][m];
        int[][] b = new int[m][l];
        long[][] c = new long[n][l];

        for(int i = 0; i < n; i++){
            line = br.readLine().split(" ");
            for(int j = 0; j < m; j++){
                a[i][j] = Integer.parseInt(line[j]);
            }
        }

        for(int i = 0; i < m; i++){
            line = br.readLine().split(" ");
            for(int j = 0; j < l; j++){
                b[i][j] = Integer.parseInt(line[j]);
            }
        }

        for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
                for(int k = 0; k < m; k++)
                    c[i][j] += a[i][k] * b[k][j];
            }
        }

        for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
                System.out.print(c[i][j]);
                if(j != l-1)
                    System.out.print(" ");
            }
            System.out.print("\n");
        }
    }
} public class Main{
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] line = br.readLine().split(" ");
        int n = Integer.parseInt(line[0]);
        int m = Integer.parseInt(line[1]);
        int l = Integer.parseInt(line[2]);
        int[][] a = new int[n][m];
        int[][] b = new int[m][l];
        long[][] c = new long[n][l];

        for(int i = 0; i < n; i++){
            line = br.readLine().split(" ");
            for(int j = 0; j < m; j++){
                a[i][j] = Integer.parseInt(line[j]);
            }
        }

        for(int i = 0; i < m; i++){
            line = br.readLine().split(" ");
            for(int j = 0; j < l; j++){
                b[i][j] = Integer.parseInt(line[j]);
            }
        }

        for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
                for(int k = 0; k < m; k++)
                    c[i][j] += a[i][k] * b[k][j];
            }
        }

        for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
                System.out.print(c[i][j]);
                if(j != l-1)
                    System.out.print(" ");
            }
            System.out.print("\n");
        }
    }
} Main
import java.io.*;

public class Main{
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] line = br.readLine().split(" ");
        int n = Integer.parseInt(line[0]);
        int m = Integer.parseInt(line[1]);
        int l = Integer.parseInt(line[2]);
        int[][] a = new int[n][m];
        int[][] b = new int[m][l];
        long[][] c = new long[n][l];

        for(int i = 0; i < n; i++){
            line = br.readLine().split(" ");
            for(int j = 0; j < m; j++){
                a[i][j] = Integer.parseInt(line[j]);
            }
        }

        for(int i = 0; i < m; i++){
            line = br.readLine().split(" ");
            for(int j = 0; j < l; j++){
                b[i][j] = Integer.parseInt(line[j]);
            }
        }

        for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
                for(int k = 0; k < m; k++)
                    c[i][j] += a[i][k] * b[k][j];
            }
        }

        for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
                System.out.print(c[i][j]);
                if(j != l-1)
                    System.out.print(" ");
            }
            System.out.print("\n");
        }
    }
}