import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int M = sc.nextInt();
        int L = sc.nextInt();
        long[][] A = new long[N][M];
        long[][] B = new long[M][L];
        long[][] C = new long[N][L];
        for (int n = 0; n < N; n++) {
            for (int m = 0; m < M; m++) {
                A[n][m] = sc.nextInt();
            }
        }
        for (int m = 0; m < M; m++) {
            for (int l = 0; l < L; l++) {
                B[m][l] = sc.nextInt();
            }
        }
        for (int n = 0; n < N; n++) {
            StringBuilder sb = new StringBuilder();
            for (int l = 0; l < L; l++) {
                for (int m = 0; m < M; m++) {
                    C[n][l] += A[n][m] * B[m][l];
                }
                sb.append(C[n][l]);
                if (l < L - 1) sb.append(' ');
                else System.out.println(sb);
            }
        }
    }
}
 import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int M = sc.nextInt();
        int L = sc.nextInt();
        long[][] A = new long[N][M];
        long[][] B = new long[M][L];
        long[][] C = new long[N][L];
        for (int n = 0; n < N; n++) {
            for (int m = 0; m < M; m++) {
                A[n][m] = sc.nextInt();
            }
        }
        for (int m = 0; m < M; m++) {
            for (int l = 0; l < L; l++) {
                B[m][l] = sc.nextInt();
            }
        }
        for (int n = 0; n < N; n++) {
            StringBuilder sb = new StringBuilder();
            for (int l = 0; l < L; l++) {
                for (int m = 0; m < M; m++) {
                    C[n][l] += A[n][m] * B[m][l];
                }
                sb.append(C[n][l]);
                if (l < L - 1) sb.append(' ');
                else System.out.println(sb);
            }
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int M = sc.nextInt();
        int L = sc.nextInt();
        long[][] A = new long[N][M];
        long[][] B = new long[M][L];
        long[][] C = new long[N][L];
        for (int n = 0; n < N; n++) {
            for (int m = 0; m < M; m++) {
                A[n][m] = sc.nextInt();
            }
        }
        for (int m = 0; m < M; m++) {
            for (int l = 0; l < L; l++) {
                B[m][l] = sc.nextInt();
            }
        }
        for (int n = 0; n < N; n++) {
            StringBuilder sb = new StringBuilder();
            for (int l = 0; l < L; l++) {
                for (int m = 0; m < M; m++) {
                    C[n][l] += A[n][m] * B[m][l];
                }
                sb.append(C[n][l]);
                if (l < L - 1) sb.append(' ');
                else System.out.println(sb);
            }
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int M = sc.nextInt();
        int L = sc.nextInt();
        long[][] A = new long[N][M];
        long[][] B = new long[M][L];
        long[][] C = new long[N][L];
        for (int n = 0; n < N; n++) {
            for (int m = 0; m < M; m++) {
                A[n][m] = sc.nextInt();
            }
        }
        for (int m = 0; m < M; m++) {
            for (int l = 0; l < L; l++) {
                B[m][l] = sc.nextInt();
            }
        }
        for (int n = 0; n < N; n++) {
            StringBuilder sb = new StringBuilder();
            for (int l = 0; l < L; l++) {
                for (int m = 0; m < M; m++) {
                    C[n][l] += A[n][m] * B[m][l];
                }
                sb.append(C[n][l]);
                if (l < L - 1) sb.append(' ');
                else System.out.println(sb);
            }
        }
    } Scanner 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 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 n = 0; n < N; n++) {
            for (int m = 0; m < M; m++) {
                A[n][m] = sc.nextInt();
            }
        } int n = 0; int n = 0; n 0 n < N n N n++ n++ n {
            for (int m = 0; m < M; m++) {
                A[n][m] = sc.nextInt();
            }
        } {
            for (int m = 0; m < M; m++) {
                A[n][m] = sc.nextInt();
            }
        } for (int m = 0; m < M; m++) {
                A[n][m] = sc.nextInt();
            } int m = 0; int m = 0; m 0 m < M m M m++ m++ m {
                A[n][m] = sc.nextInt();
            } {
                A[n][m] = sc.nextInt();
            } A[n][m] = sc.nextInt() A[n][m] A[n] A n m sc.nextInt() sc.nextInt sc for (int m = 0; m < M; m++) {
            for (int l = 0; l < L; l++) {
                B[m][l] = sc.nextInt();
            }
        } int m = 0; int m = 0; m 0 m < M m M m++ m++ m {
            for (int l = 0; l < L; l++) {
                B[m][l] = sc.nextInt();
            }
        } {
            for (int l = 0; l < L; l++) {
                B[m][l] = sc.nextInt();
            }
        } for (int l = 0; l < L; l++) {
                B[m][l] = sc.nextInt();
            } int l = 0; int l = 0; l 0 l < L l L l++ l++ l {
                B[m][l] = sc.nextInt();
            } {
                B[m][l] = sc.nextInt();
            } B[m][l] = sc.nextInt() B[m][l] B[m] B m l sc.nextInt() sc.nextInt sc for (int n = 0; n < N; n++) {
            StringBuilder sb = new StringBuilder();
            for (int l = 0; l < L; l++) {
                for (int m = 0; m < M; m++) {
                    C[n][l] += A[n][m] * B[m][l];
                }
                sb.append(C[n][l]);
                if (l < L - 1) sb.append(' ');
                else System.out.println(sb);
            }
        } int n = 0; int n = 0; n 0 n < N n N n++ n++ n {
            StringBuilder sb = new StringBuilder();
            for (int l = 0; l < L; l++) {
                for (int m = 0; m < M; m++) {
                    C[n][l] += A[n][m] * B[m][l];
                }
                sb.append(C[n][l]);
                if (l < L - 1) sb.append(' ');
                else System.out.println(sb);
            }
        } {
            StringBuilder sb = new StringBuilder();
            for (int l = 0; l < L; l++) {
                for (int m = 0; m < M; m++) {
                    C[n][l] += A[n][m] * B[m][l];
                }
                sb.append(C[n][l]);
                if (l < L - 1) sb.append(' ');
                else System.out.println(sb);
            }
        } StringBuilder sb = new StringBuilder(); sb new StringBuilder() for (int l = 0; l < L; l++) {
                for (int m = 0; m < M; m++) {
                    C[n][l] += A[n][m] * B[m][l];
                }
                sb.append(C[n][l]);
                if (l < L - 1) sb.append(' ');
                else System.out.println(sb);
            } int l = 0; int l = 0; l 0 l < L l L l++ l++ l {
                for (int m = 0; m < M; m++) {
                    C[n][l] += A[n][m] * B[m][l];
                }
                sb.append(C[n][l]);
                if (l < L - 1) sb.append(' ');
                else System.out.println(sb);
            } {
                for (int m = 0; m < M; m++) {
                    C[n][l] += A[n][m] * B[m][l];
                }
                sb.append(C[n][l]);
                if (l < L - 1) sb.append(' ');
                else System.out.println(sb);
            } for (int m = 0; m < M; m++) {
                    C[n][l] += A[n][m] * B[m][l];
                } int m = 0; int m = 0; m 0 m < M m M m++ m++ m {
                    C[n][l] += A[n][m] * B[m][l];
                } {
                    C[n][l] += A[n][m] * B[m][l];
                } C[n][l] += A[n][m] * B[m][l] C[n][l] C[n] C n l A[n][m] * B[m][l] A[n][m] A[n] A n m B[m][l] B[m] B m l sb.append(C[n][l]) sb.append sb C[n][l] C[n] C n l if (l < L - 1) sb.append(' ');
                else System.out.println(sb); l < L - 1 l L - 1 L 1 sb.append(' ') sb.append sb ' ' System.out.println(sb) System.out.println System.out System System.out sb String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int M = sc.nextInt();
        int L = sc.nextInt();
        long[][] A = new long[N][M];
        long[][] B = new long[M][L];
        long[][] C = new long[N][L];
        for (int n = 0; n < N; n++) {
            for (int m = 0; m < M; m++) {
                A[n][m] = sc.nextInt();
            }
        }
        for (int m = 0; m < M; m++) {
            for (int l = 0; l < L; l++) {
                B[m][l] = sc.nextInt();
            }
        }
        for (int n = 0; n < N; n++) {
            StringBuilder sb = new StringBuilder();
            for (int l = 0; l < L; l++) {
                for (int m = 0; m < M; m++) {
                    C[n][l] += A[n][m] * B[m][l];
                }
                sb.append(C[n][l]);
                if (l < L - 1) sb.append(' ');
                else System.out.println(sb);
            }
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int M = sc.nextInt();
        int L = sc.nextInt();
        long[][] A = new long[N][M];
        long[][] B = new long[M][L];
        long[][] C = new long[N][L];
        for (int n = 0; n < N; n++) {
            for (int m = 0; m < M; m++) {
                A[n][m] = sc.nextInt();
            }
        }
        for (int m = 0; m < M; m++) {
            for (int l = 0; l < L; l++) {
                B[m][l] = sc.nextInt();
            }
        }
        for (int n = 0; n < N; n++) {
            StringBuilder sb = new StringBuilder();
            for (int l = 0; l < L; l++) {
                for (int m = 0; m < M; m++) {
                    C[n][l] += A[n][m] * B[m][l];
                }
                sb.append(C[n][l]);
                if (l < L - 1) sb.append(' ');
                else System.out.println(sb);
            }
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int M = sc.nextInt();
        int L = sc.nextInt();
        long[][] A = new long[N][M];
        long[][] B = new long[M][L];
        long[][] C = new long[N][L];
        for (int n = 0; n < N; n++) {
            for (int m = 0; m < M; m++) {
                A[n][m] = sc.nextInt();
            }
        }
        for (int m = 0; m < M; m++) {
            for (int l = 0; l < L; l++) {
                B[m][l] = sc.nextInt();
            }
        }
        for (int n = 0; n < N; n++) {
            StringBuilder sb = new StringBuilder();
            for (int l = 0; l < L; l++) {
                for (int m = 0; m < M; m++) {
                    C[n][l] += A[n][m] * B[m][l];
                }
                sb.append(C[n][l]);
                if (l < L - 1) sb.append(' ');
                else System.out.println(sb);
            }
        }
    }
}

