import java.util.Scanner;

public 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)];
        long[][] C = new long[(n)][(l)];

        for (int i = 0; n > i; i++) {
            for (int j = 0; m > j; j++) {
                int a = scanner.nextInt();
                A[i][j] = a;
            }
        }

        for (int i = 0; m > i; i++) {
            for (int j = 0; l > j; j++) {
                int a = scanner.nextInt();
                B[i][j] = a;
            }
        }

        for (int i = 0; n > i; i++) {
            for (int j = 0; m > j; j++) {
                for (int k = 0; l > k; k++) {
                    C[i][k] += A[i][j] * B[j][k];
                }
            }
        }

            for (int i = 0; n > i; i++) {
                for (int j = 0; l > j; j++) {
                    if (j != (l-1)) {
                        System.out.print(C[i][j]+" ");
                    } else {
                        System.out.println(C[i][j]);
                    }
                }
            }
        }
    } import java.util.Scanner; Scanner java.util public 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)];
        long[][] C = new long[(n)][(l)];

        for (int i = 0; n > i; i++) {
            for (int j = 0; m > j; j++) {
                int a = scanner.nextInt();
                A[i][j] = a;
            }
        }

        for (int i = 0; m > i; i++) {
            for (int j = 0; l > j; j++) {
                int a = scanner.nextInt();
                B[i][j] = a;
            }
        }

        for (int i = 0; n > i; i++) {
            for (int j = 0; m > j; j++) {
                for (int k = 0; l > k; k++) {
                    C[i][k] += A[i][j] * B[j][k];
                }
            }
        }

            for (int i = 0; n > i; i++) {
                for (int j = 0; l > j; j++) {
                    if (j != (l-1)) {
                        System.out.print(C[i][j]+" ");
                    } else {
                        System.out.println(C[i][j]);
                    }
                }
            }
        }
    } 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)];
        long[][] C = new long[(n)][(l)];

        for (int i = 0; n > i; i++) {
            for (int j = 0; m > j; j++) {
                int a = scanner.nextInt();
                A[i][j] = a;
            }
        }

        for (int i = 0; m > i; i++) {
            for (int j = 0; l > j; j++) {
                int a = scanner.nextInt();
                B[i][j] = a;
            }
        }

        for (int i = 0; n > i; i++) {
            for (int j = 0; m > j; j++) {
                for (int k = 0; l > k; k++) {
                    C[i][k] += A[i][j] * B[j][k];
                }
            }
        }

            for (int i = 0; n > i; i++) {
                for (int j = 0; l > j; j++) {
                    if (j != (l-1)) {
                        System.out.print(C[i][j]+" ");
                    } else {
                        System.out.println(C[i][j]);
                    }
                }
            }
        } 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)];
        long[][] C = new long[(n)][(l)];

        for (int i = 0; n > i; i++) {
            for (int j = 0; m > j; j++) {
                int a = scanner.nextInt();
                A[i][j] = a;
            }
        }

        for (int i = 0; m > i; i++) {
            for (int j = 0; l > j; j++) {
                int a = scanner.nextInt();
                B[i][j] = a;
            }
        }

        for (int i = 0; n > i; i++) {
            for (int j = 0; m > j; j++) {
                for (int k = 0; l > k; k++) {
                    C[i][k] += A[i][j] * B[j][k];
                }
            }
        }

            for (int i = 0; n > i; i++) {
                for (int j = 0; l > j; j++) {
                    if (j != (l-1)) {
                        System.out.print(C[i][j]+" ");
                    } else {
                        System.out.println(C[i][j]);
                    }
                }
            }
        } 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) long[][] C = new long[(n)][(l)]; C new long[(n)][(l)] (n) (l) for (int i = 0; n > i; i++) {
            for (int j = 0; m > j; j++) {
                int a = scanner.nextInt();
                A[i][j] = a;
            }
        } int i = 0; int i = 0; i 0 n > i n i i++ i++ i {
            for (int j = 0; m > j; j++) {
                int a = scanner.nextInt();
                A[i][j] = a;
            }
        } {
            for (int j = 0; m > j; j++) {
                int a = scanner.nextInt();
                A[i][j] = a;
            }
        } for (int j = 0; m > j; j++) {
                int a = scanner.nextInt();
                A[i][j] = a;
            } int j = 0; int j = 0; j 0 m > j m j j++ j++ j {
                int a = scanner.nextInt();
                A[i][j] = a;
            } {
                int a = scanner.nextInt();
                A[i][j] = a;
            } int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner A[i][j] = a A[i][j] A[i] A i j a for (int i = 0; m > i; i++) {
            for (int j = 0; l > j; j++) {
                int a = scanner.nextInt();
                B[i][j] = a;
            }
        } int i = 0; int i = 0; i 0 m > i m i i++ i++ i {
            for (int j = 0; l > j; j++) {
                int a = scanner.nextInt();
                B[i][j] = a;
            }
        } {
            for (int j = 0; l > j; j++) {
                int a = scanner.nextInt();
                B[i][j] = a;
            }
        } for (int j = 0; l > j; j++) {
                int a = scanner.nextInt();
                B[i][j] = a;
            } int j = 0; int j = 0; j 0 l > j l j j++ j++ j {
                int a = scanner.nextInt();
                B[i][j] = a;
            } {
                int a = scanner.nextInt();
                B[i][j] = a;
            } int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner B[i][j] = a B[i][j] B[i] B i j a for (int i = 0; n > i; i++) {
            for (int j = 0; m > j; j++) {
                for (int k = 0; l > k; k++) {
                    C[i][k] += A[i][j] * B[j][k];
                }
            }
        } int i = 0; int i = 0; i 0 n > i n i i++ i++ i {
            for (int j = 0; m > j; j++) {
                for (int k = 0; l > k; k++) {
                    C[i][k] += A[i][j] * B[j][k];
                }
            }
        } {
            for (int j = 0; m > j; j++) {
                for (int k = 0; l > k; k++) {
                    C[i][k] += A[i][j] * B[j][k];
                }
            }
        } for (int j = 0; m > j; j++) {
                for (int k = 0; l > k; k++) {
                    C[i][k] += A[i][j] * B[j][k];
                }
            } int j = 0; int j = 0; j 0 m > j m j j++ j++ j {
                for (int k = 0; l > k; k++) {
                    C[i][k] += A[i][j] * B[j][k];
                }
            } {
                for (int k = 0; l > k; k++) {
                    C[i][k] += A[i][j] * B[j][k];
                }
            } for (int k = 0; l > k; k++) {
                    C[i][k] += A[i][j] * B[j][k];
                } int k = 0; int k = 0; k 0 l > k l k k++ k++ k {
                    C[i][k] += A[i][j] * B[j][k];
                } {
                    C[i][k] += A[i][j] * B[j][k];
                } C[i][k] += A[i][j] * B[j][k] C[i][k] C[i] C i k A[i][j] * B[j][k] A[i][j] A[i] A i j B[j][k] B[j] B j k for (int i = 0; n > i; i++) {
                for (int j = 0; l > j; j++) {
                    if (j != (l-1)) {
                        System.out.print(C[i][j]+" ");
                    } else {
                        System.out.println(C[i][j]);
                    }
                }
            } int i = 0; int i = 0; i 0 n > i n i i++ i++ i {
                for (int j = 0; l > j; j++) {
                    if (j != (l-1)) {
                        System.out.print(C[i][j]+" ");
                    } else {
                        System.out.println(C[i][j]);
                    }
                }
            } {
                for (int j = 0; l > j; j++) {
                    if (j != (l-1)) {
                        System.out.print(C[i][j]+" ");
                    } else {
                        System.out.println(C[i][j]);
                    }
                }
            } for (int j = 0; l > j; j++) {
                    if (j != (l-1)) {
                        System.out.print(C[i][j]+" ");
                    } else {
                        System.out.println(C[i][j]);
                    }
                } int j = 0; int j = 0; j 0 l > j l j j++ j++ j {
                    if (j != (l-1)) {
                        System.out.print(C[i][j]+" ");
                    } else {
                        System.out.println(C[i][j]);
                    }
                } {
                    if (j != (l-1)) {
                        System.out.print(C[i][j]+" ");
                    } else {
                        System.out.println(C[i][j]);
                    }
                } if (j != (l-1)) {
                        System.out.print(C[i][j]+" ");
                    } else {
                        System.out.println(C[i][j]);
                    } j != (l-1) j (l-1) l 1 {
                        System.out.print(C[i][j]+" ");
                    } System.out.print(C[i][j]+" ") System.out.print System.out System System.out C[i][j]+" " C[i][j] C[i] C i j " " {
                        System.out.println(C[i][j]);
                    } System.out.println(C[i][j]) System.out.println System.out System System.out C[i][j] C[i] C i j String[] args args public 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)];
        long[][] C = new long[(n)][(l)];

        for (int i = 0; n > i; i++) {
            for (int j = 0; m > j; j++) {
                int a = scanner.nextInt();
                A[i][j] = a;
            }
        }

        for (int i = 0; m > i; i++) {
            for (int j = 0; l > j; j++) {
                int a = scanner.nextInt();
                B[i][j] = a;
            }
        }

        for (int i = 0; n > i; i++) {
            for (int j = 0; m > j; j++) {
                for (int k = 0; l > k; k++) {
                    C[i][k] += A[i][j] * B[j][k];
                }
            }
        }

            for (int i = 0; n > i; i++) {
                for (int j = 0; l > j; j++) {
                    if (j != (l-1)) {
                        System.out.print(C[i][j]+" ");
                    } else {
                        System.out.println(C[i][j]);
                    }
                }
            }
        }
    } public 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)];
        long[][] C = new long[(n)][(l)];

        for (int i = 0; n > i; i++) {
            for (int j = 0; m > j; j++) {
                int a = scanner.nextInt();
                A[i][j] = a;
            }
        }

        for (int i = 0; m > i; i++) {
            for (int j = 0; l > j; j++) {
                int a = scanner.nextInt();
                B[i][j] = a;
            }
        }

        for (int i = 0; n > i; i++) {
            for (int j = 0; m > j; j++) {
                for (int k = 0; l > k; k++) {
                    C[i][k] += A[i][j] * B[j][k];
                }
            }
        }

            for (int i = 0; n > i; i++) {
                for (int j = 0; l > j; j++) {
                    if (j != (l-1)) {
                        System.out.print(C[i][j]+" ");
                    } else {
                        System.out.println(C[i][j]);
                    }
                }
            }
        }
    } Main
import java.util.Scanner;

public 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)];
        long[][] C = new long[(n)][(l)];

        for (int i = 0; n > i; i++) {
            for (int j = 0; m > j; j++) {
                int a = scanner.nextInt();
                A[i][j] = a;
            }
        }

        for (int i = 0; m > i; i++) {
            for (int j = 0; l > j; j++) {
                int a = scanner.nextInt();
                B[i][j] = a;
            }
        }

        for (int i = 0; n > i; i++) {
            for (int j = 0; m > j; j++) {
                for (int k = 0; l > k; k++) {
                    C[i][k] += A[i][j] * B[j][k];
                }
            }
        }

            for (int i = 0; n > i; i++) {
                for (int j = 0; l > j; j++) {
                    if (j != (l-1)) {
                        System.out.print(C[i][j]+" ");
                    } else {
                        System.out.println(C[i][j]);
                    }
                }
            }
        }
    }