import java.io.ByteArrayInputStream;
import java.io.PrintWriter;
import java.util.Scanner;

public class Main {

    String INPUT = "";

    public static void main(String[] args) throws Exception {
        new Main().run();
    }

    void run() {
        Scanner sc = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(new ByteArrayInputStream(INPUT.getBytes()));
        PrintWriter out = new PrintWriter(System.out);

        solve(sc, out);
        out.flush();
    }

    void solve(Scanner sc, PrintWriter out) {
        int n, m, l;
        
        n = sc.nextInt();
        m = sc.nextInt();
        l = sc.nextInt();
        long A[][] = new long[n][m];
        long B[][] = new long[m][l];
        long C[][] = new long[n][l];
        for (int i = 0; i < n; i++) {
        	for (int j = 0; j < m; j++) {
        	    A[i][j] = sc.nextLong();
            }
		}
        for (int i = 0; i < m; i++) {
            for (int j = 0; j < l; j++) {
                B[i][j] = sc.nextLong();
            }
        }
        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];
                }
            
                if(j != 0 ){
                    System.out.print(" ");
                }
                System.out.print(C[i][j]);
            }
            System.out.println();
        }
    }
}
 import java.io.ByteArrayInputStream; ByteArrayInputStream java.io import java.io.PrintWriter; PrintWriter java.io import java.util.Scanner; Scanner java.util public class Main {

    String INPUT = "";

    public static void main(String[] args) throws Exception {
        new Main().run();
    }

    void run() {
        Scanner sc = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(new ByteArrayInputStream(INPUT.getBytes()));
        PrintWriter out = new PrintWriter(System.out);

        solve(sc, out);
        out.flush();
    }

    void solve(Scanner sc, PrintWriter out) {
        int n, m, l;
        
        n = sc.nextInt();
        m = sc.nextInt();
        l = sc.nextInt();
        long A[][] = new long[n][m];
        long B[][] = new long[m][l];
        long C[][] = new long[n][l];
        for (int i = 0; i < n; i++) {
        	for (int j = 0; j < m; j++) {
        	    A[i][j] = sc.nextLong();
            }
		}
        for (int i = 0; i < m; i++) {
            for (int j = 0; j < l; j++) {
                B[i][j] = sc.nextLong();
            }
        }
        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];
                }
            
                if(j != 0 ){
                    System.out.print(" ");
                }
                System.out.print(C[i][j]);
            }
            System.out.println();
        }
    }
} Main String INPUT = ""; INPUT "" public static void main(String[] args) throws Exception {
        new Main().run();
    } main {
        new Main().run();
    } new Main().run() new Main().run new Main() String[] args args void run() {
        Scanner sc = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(new ByteArrayInputStream(INPUT.getBytes()));
        PrintWriter out = new PrintWriter(System.out);

        solve(sc, out);
        out.flush();
    } run {
        Scanner sc = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(new ByteArrayInputStream(INPUT.getBytes()));
        PrintWriter out = new PrintWriter(System.out);

        solve(sc, out);
        out.flush();
    } Scanner sc = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(new ByteArrayInputStream(INPUT.getBytes())); sc INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(new ByteArrayInputStream(INPUT.getBytes())) INPUT.isEmpty() INPUT.isEmpty INPUT new Scanner(System.in) new Scanner(new ByteArrayInputStream(INPUT.getBytes())) PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) solve(sc, out) solve sc out out.flush() out.flush out void solve(Scanner sc, PrintWriter out) {
        int n, m, l;
        
        n = sc.nextInt();
        m = sc.nextInt();
        l = sc.nextInt();
        long A[][] = new long[n][m];
        long B[][] = new long[m][l];
        long C[][] = new long[n][l];
        for (int i = 0; i < n; i++) {
        	for (int j = 0; j < m; j++) {
        	    A[i][j] = sc.nextLong();
            }
		}
        for (int i = 0; i < m; i++) {
            for (int j = 0; j < l; j++) {
                B[i][j] = sc.nextLong();
            }
        }
        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];
                }
            
                if(j != 0 ){
                    System.out.print(" ");
                }
                System.out.print(C[i][j]);
            }
            System.out.println();
        }
    } solve {
        int n, m, l;
        
        n = sc.nextInt();
        m = sc.nextInt();
        l = sc.nextInt();
        long A[][] = new long[n][m];
        long B[][] = new long[m][l];
        long C[][] = new long[n][l];
        for (int i = 0; i < n; i++) {
        	for (int j = 0; j < m; j++) {
        	    A[i][j] = sc.nextLong();
            }
		}
        for (int i = 0; i < m; i++) {
            for (int j = 0; j < l; j++) {
                B[i][j] = sc.nextLong();
            }
        }
        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];
                }
            
                if(j != 0 ){
                    System.out.print(" ");
                }
                System.out.print(C[i][j]);
            }
            System.out.println();
        }
    } int n n m m l; l n = sc.nextInt() n sc.nextInt() sc.nextInt sc m = sc.nextInt() m sc.nextInt() sc.nextInt sc l = sc.nextInt() l sc.nextInt() sc.nextInt sc 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 long C[][] = new long[n][l]; C new long[n][l] n l for (int i = 0; i < n; i++) {
        	for (int j = 0; j < m; j++) {
        	    A[i][j] = sc.nextLong();
            }
		} 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] = sc.nextLong();
            }
		} {
        	for (int j = 0; j < m; j++) {
        	    A[i][j] = sc.nextLong();
            }
		} for (int j = 0; j < m; j++) {
        	    A[i][j] = sc.nextLong();
            } int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
        	    A[i][j] = sc.nextLong();
            } {
        	    A[i][j] = sc.nextLong();
            } A[i][j] = sc.nextLong() A[i][j] A[i] A i j sc.nextLong() sc.nextLong sc for (int i = 0; i < m; i++) {
            for (int j = 0; j < l; j++) {
                B[i][j] = sc.nextLong();
            }
        } 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] = sc.nextLong();
            }
        } {
            for (int j = 0; j < l; j++) {
                B[i][j] = sc.nextLong();
            }
        } for (int j = 0; j < l; j++) {
                B[i][j] = sc.nextLong();
            } int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
                B[i][j] = sc.nextLong();
            } {
                B[i][j] = sc.nextLong();
            } B[i][j] = sc.nextLong() B[i][j] B[i] B i j sc.nextLong() sc.nextLong sc 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];
                }
            
                if(j != 0 ){
                    System.out.print(" ");
                }
                System.out.print(C[i][j]);
            }
            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++){
                for(int k = 0; k < m; k++){
                    C[i][j] += A[i][k]*B[k][j];
                }
            
                if(j != 0 ){
                    System.out.print(" ");
                }
                System.out.print(C[i][j]);
            }
            System.out.println();
        } {
            for(int j = 0; j < l; j++){
                for(int k = 0; k < m; k++){
                    C[i][j] += A[i][k]*B[k][j];
                }
            
                if(j != 0 ){
                    System.out.print(" ");
                }
                System.out.print(C[i][j]);
            }
            System.out.println();
        } for(int j = 0; j < l; j++){
                for(int k = 0; k < m; k++){
                    C[i][j] += A[i][k]*B[k][j];
                }
            
                if(j != 0 ){
                    System.out.print(" ");
                }
                System.out.print(C[i][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];
                }
            
                if(j != 0 ){
                    System.out.print(" ");
                }
                System.out.print(C[i][j]);
            } {
                for(int k = 0; k < m; k++){
                    C[i][j] += A[i][k]*B[k][j];
                }
            
                if(j != 0 ){
                    System.out.print(" ");
                }
                System.out.print(C[i][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] += 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 if(j != 0 ){
                    System.out.print(" ");
                } j != 0 j 0 {
                    System.out.print(" ");
                } System.out.print(" ") System.out.print System.out System System.out " " System.out.print(C[i][j]) System.out.print System.out System System.out C[i][j] C[i] C i j System.out.println() System.out.println System.out System System.out Scanner sc sc PrintWriter out out public class Main {

    String INPUT = "";

    public static void main(String[] args) throws Exception {
        new Main().run();
    }

    void run() {
        Scanner sc = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(new ByteArrayInputStream(INPUT.getBytes()));
        PrintWriter out = new PrintWriter(System.out);

        solve(sc, out);
        out.flush();
    }

    void solve(Scanner sc, PrintWriter out) {
        int n, m, l;
        
        n = sc.nextInt();
        m = sc.nextInt();
        l = sc.nextInt();
        long A[][] = new long[n][m];
        long B[][] = new long[m][l];
        long C[][] = new long[n][l];
        for (int i = 0; i < n; i++) {
        	for (int j = 0; j < m; j++) {
        	    A[i][j] = sc.nextLong();
            }
		}
        for (int i = 0; i < m; i++) {
            for (int j = 0; j < l; j++) {
                B[i][j] = sc.nextLong();
            }
        }
        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];
                }
            
                if(j != 0 ){
                    System.out.print(" ");
                }
                System.out.print(C[i][j]);
            }
            System.out.println();
        }
    }
} public class Main {

    String INPUT = "";

    public static void main(String[] args) throws Exception {
        new Main().run();
    }

    void run() {
        Scanner sc = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(new ByteArrayInputStream(INPUT.getBytes()));
        PrintWriter out = new PrintWriter(System.out);

        solve(sc, out);
        out.flush();
    }

    void solve(Scanner sc, PrintWriter out) {
        int n, m, l;
        
        n = sc.nextInt();
        m = sc.nextInt();
        l = sc.nextInt();
        long A[][] = new long[n][m];
        long B[][] = new long[m][l];
        long C[][] = new long[n][l];
        for (int i = 0; i < n; i++) {
        	for (int j = 0; j < m; j++) {
        	    A[i][j] = sc.nextLong();
            }
		}
        for (int i = 0; i < m; i++) {
            for (int j = 0; j < l; j++) {
                B[i][j] = sc.nextLong();
            }
        }
        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];
                }
            
                if(j != 0 ){
                    System.out.print(" ");
                }
                System.out.print(C[i][j]);
            }
            System.out.println();
        }
    }
} Main
import java.io.ByteArrayInputStream;
import java.io.PrintWriter;
import java.util.Scanner;

public class Main {

    String INPUT = "";

    public static void main(String[] args) throws Exception {
        new Main().run();
    }

    void run() {
        Scanner sc = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(new ByteArrayInputStream(INPUT.getBytes()));
        PrintWriter out = new PrintWriter(System.out);

        solve(sc, out);
        out.flush();
    }

    void solve(Scanner sc, PrintWriter out) {
        int n, m, l;
        
        n = sc.nextInt();
        m = sc.nextInt();
        l = sc.nextInt();
        long A[][] = new long[n][m];
        long B[][] = new long[m][l];
        long C[][] = new long[n][l];
        for (int i = 0; i < n; i++) {
        	for (int j = 0; j < m; j++) {
        	    A[i][j] = sc.nextLong();
            }
		}
        for (int i = 0; i < m; i++) {
            for (int j = 0; j < l; j++) {
                B[i][j] = sc.nextLong();
            }
        }
        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];
                }
            
                if(j != 0 ){
                    System.out.print(" ");
                }
                System.out.print(C[i][j]);
            }
            System.out.println();
        }
    }
}

