import java.util.Scanner;

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

        int n = Integer.parseInt(sc.next());
        int m = Integer.parseInt(sc.next());
        int l = Integer.parseInt(sc.next());

        int[][] A = new int[n][m];
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < m; j++) {
                A[i][j] = Integer.parseInt(sc.next());
            }
        }

        int[][] B = new int[m][l];
        for (int i = 0; i < m; i++) {
            for (int j = 0; j < l; j++) {
                B[i][j] = Integer.parseInt(sc.next());
            }
        }

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

                if (j == l - 1) {
                    System.out.printf("%d\n", tmp);
                } else {
                    System.out.printf("%d ", tmp);
                }
            }
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = Integer.parseInt(sc.next());
        int m = Integer.parseInt(sc.next());
        int l = Integer.parseInt(sc.next());

        int[][] A = new int[n][m];
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < m; j++) {
                A[i][j] = Integer.parseInt(sc.next());
            }
        }

        int[][] B = new int[m][l];
        for (int i = 0; i < m; i++) {
            for (int j = 0; j < l; j++) {
                B[i][j] = Integer.parseInt(sc.next());
            }
        }

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

                if (j == l - 1) {
                    System.out.printf("%d\n", tmp);
                } else {
                    System.out.printf("%d ", tmp);
                }
            }
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = Integer.parseInt(sc.next());
        int m = Integer.parseInt(sc.next());
        int l = Integer.parseInt(sc.next());

        int[][] A = new int[n][m];
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < m; j++) {
                A[i][j] = Integer.parseInt(sc.next());
            }
        }

        int[][] B = new int[m][l];
        for (int i = 0; i < m; i++) {
            for (int j = 0; j < l; j++) {
                B[i][j] = Integer.parseInt(sc.next());
            }
        }

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

                if (j == l - 1) {
                    System.out.printf("%d\n", tmp);
                } else {
                    System.out.printf("%d ", tmp);
                }
            }
        }
    } main {
        Scanner sc = new Scanner(System.in);

        int n = Integer.parseInt(sc.next());
        int m = Integer.parseInt(sc.next());
        int l = Integer.parseInt(sc.next());

        int[][] A = new int[n][m];
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < m; j++) {
                A[i][j] = Integer.parseInt(sc.next());
            }
        }

        int[][] B = new int[m][l];
        for (int i = 0; i < m; i++) {
            for (int j = 0; j < l; j++) {
                B[i][j] = Integer.parseInt(sc.next());
            }
        }

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

                if (j == l - 1) {
                    System.out.printf("%d\n", tmp);
                } else {
                    System.out.printf("%d ", tmp);
                }
            }
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int m = Integer.parseInt(sc.next()); m Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int l = Integer.parseInt(sc.next()); l Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[][] A = new int[n][m]; A new int[n][m] n m for (int i = 0; i < n; i++) {
            for (int j = 0; j < m; j++) {
                A[i][j] = Integer.parseInt(sc.next());
            }
        } 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] = Integer.parseInt(sc.next());
            }
        } {
            for (int j = 0; j < m; j++) {
                A[i][j] = Integer.parseInt(sc.next());
            }
        } for (int j = 0; j < m; j++) {
                A[i][j] = Integer.parseInt(sc.next());
            } int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
                A[i][j] = Integer.parseInt(sc.next());
            } {
                A[i][j] = Integer.parseInt(sc.next());
            } A[i][j] = Integer.parseInt(sc.next()) A[i][j] A[i] A i j Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[][] B = new int[m][l]; B new int[m][l] m l for (int i = 0; i < m; i++) {
            for (int j = 0; j < l; j++) {
                B[i][j] = Integer.parseInt(sc.next());
            }
        } 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] = Integer.parseInt(sc.next());
            }
        } {
            for (int j = 0; j < l; j++) {
                B[i][j] = Integer.parseInt(sc.next());
            }
        } for (int j = 0; j < l; j++) {
                B[i][j] = Integer.parseInt(sc.next());
            } int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
                B[i][j] = Integer.parseInt(sc.next());
            } {
                B[i][j] = Integer.parseInt(sc.next());
            } B[i][j] = Integer.parseInt(sc.next()) B[i][j] B[i] B i j Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc for (int i = 0; i < n; i++) {
            for (int j = 0; j < l; j++) {
                long tmp = 0;
                for (int k = 0; k < m; k++) {
                    tmp += A[i][k] * B[k][j];
                }

                if (j == l - 1) {
                    System.out.printf("%d\n", tmp);
                } else {
                    System.out.printf("%d ", tmp);
                }
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            for (int j = 0; j < l; j++) {
                long tmp = 0;
                for (int k = 0; k < m; k++) {
                    tmp += A[i][k] * B[k][j];
                }

                if (j == l - 1) {
                    System.out.printf("%d\n", tmp);
                } else {
                    System.out.printf("%d ", tmp);
                }
            }
        } {
            for (int j = 0; j < l; j++) {
                long tmp = 0;
                for (int k = 0; k < m; k++) {
                    tmp += A[i][k] * B[k][j];
                }

                if (j == l - 1) {
                    System.out.printf("%d\n", tmp);
                } else {
                    System.out.printf("%d ", tmp);
                }
            }
        } for (int j = 0; j < l; j++) {
                long tmp = 0;
                for (int k = 0; k < m; k++) {
                    tmp += A[i][k] * B[k][j];
                }

                if (j == l - 1) {
                    System.out.printf("%d\n", tmp);
                } else {
                    System.out.printf("%d ", tmp);
                }
            } int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
                long tmp = 0;
                for (int k = 0; k < m; k++) {
                    tmp += A[i][k] * B[k][j];
                }

                if (j == l - 1) {
                    System.out.printf("%d\n", tmp);
                } else {
                    System.out.printf("%d ", tmp);
                }
            } {
                long tmp = 0;
                for (int k = 0; k < m; k++) {
                    tmp += A[i][k] * B[k][j];
                }

                if (j == l - 1) {
                    System.out.printf("%d\n", tmp);
                } else {
                    System.out.printf("%d ", tmp);
                }
            } long tmp = 0; tmp 0 for (int k = 0; k < m; k++) {
                    tmp += A[i][k] * B[k][j];
                } int k = 0; int k = 0; k 0 k < m k m k++ k++ k {
                    tmp += A[i][k] * B[k][j];
                } {
                    tmp += A[i][k] * B[k][j];
                } tmp += A[i][k] * B[k][j] tmp 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.printf("%d\n", tmp);
                } else {
                    System.out.printf("%d ", tmp);
                } j == l - 1 j l - 1 l 1 {
                    System.out.printf("%d\n", tmp);
                } System.out.printf("%d\n", tmp) System.out.printf System.out System System.out "%d\n" tmp {
                    System.out.printf("%d ", tmp);
                } System.out.printf("%d ", tmp) System.out.printf System.out System System.out "%d " tmp String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = Integer.parseInt(sc.next());
        int m = Integer.parseInt(sc.next());
        int l = Integer.parseInt(sc.next());

        int[][] A = new int[n][m];
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < m; j++) {
                A[i][j] = Integer.parseInt(sc.next());
            }
        }

        int[][] B = new int[m][l];
        for (int i = 0; i < m; i++) {
            for (int j = 0; j < l; j++) {
                B[i][j] = Integer.parseInt(sc.next());
            }
        }

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

                if (j == l - 1) {
                    System.out.printf("%d\n", tmp);
                } else {
                    System.out.printf("%d ", tmp);
                }
            }
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = Integer.parseInt(sc.next());
        int m = Integer.parseInt(sc.next());
        int l = Integer.parseInt(sc.next());

        int[][] A = new int[n][m];
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < m; j++) {
                A[i][j] = Integer.parseInt(sc.next());
            }
        }

        int[][] B = new int[m][l];
        for (int i = 0; i < m; i++) {
            for (int j = 0; j < l; j++) {
                B[i][j] = Integer.parseInt(sc.next());
            }
        }

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

                if (j == l - 1) {
                    System.out.printf("%d\n", tmp);
                } else {
                    System.out.printf("%d ", tmp);
                }
            }
        }
    }
} Main
import java.util.Scanner;

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

        int n = Integer.parseInt(sc.next());
        int m = Integer.parseInt(sc.next());
        int l = Integer.parseInt(sc.next());

        int[][] A = new int[n][m];
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < m; j++) {
                A[i][j] = Integer.parseInt(sc.next());
            }
        }

        int[][] B = new int[m][l];
        for (int i = 0; i < m; i++) {
            for (int j = 0; j < l; j++) {
                B[i][j] = Integer.parseInt(sc.next());
            }
        }

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

                if (j == l - 1) {
                    System.out.printf("%d\n", tmp);
                } else {
                    System.out.printf("%d ", tmp);
                }
            }
        }
    }
}