import java.util.Scanner;

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

        int[][] mat1 = new int[numRow1][numCol1Row2];
        int[][] mat2 = new int[numCol1Row2][numCol2];
        long[][] matOut = new long[numRow1][numCol2];
        int i, j, k;
        for (i = 0; i < numRow1; i++) {
            for (j = 0; j < numCol1Row2; j++) {
                mat1[i][j] = sc.nextInt();
            }
        }
        for (i = 0; i < numCol1Row2; i++) {
            for (j = 0; j < numCol2; j++) {
                mat2[i][j] = sc.nextInt();
            }
        }
        for (i = 0; i < numRow1; i++) {
            for (j = 0; j < numCol2; j++) {
                for (k = 0; k < numCol1Row2; k++) {
                    matOut[i][j] += mat1[i][k] * mat2[k][j];
                }
                if (j != 0) System.out.print(" ");
                System.out.print(matOut[i][j]);
            }
            System.out.println();
        }
    }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int numRow1 = sc.nextInt();
        int numCol1Row2 = sc.nextInt();
        int numCol2 = sc.nextInt();

        int[][] mat1 = new int[numRow1][numCol1Row2];
        int[][] mat2 = new int[numCol1Row2][numCol2];
        long[][] matOut = new long[numRow1][numCol2];
        int i, j, k;
        for (i = 0; i < numRow1; i++) {
            for (j = 0; j < numCol1Row2; j++) {
                mat1[i][j] = sc.nextInt();
            }
        }
        for (i = 0; i < numCol1Row2; i++) {
            for (j = 0; j < numCol2; j++) {
                mat2[i][j] = sc.nextInt();
            }
        }
        for (i = 0; i < numRow1; i++) {
            for (j = 0; j < numCol2; j++) {
                for (k = 0; k < numCol1Row2; k++) {
                    matOut[i][j] += mat1[i][k] * mat2[k][j];
                }
                if (j != 0) System.out.print(" ");
                System.out.print(matOut[i][j]);
            }
            System.out.println();
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int numRow1 = sc.nextInt();
        int numCol1Row2 = sc.nextInt();
        int numCol2 = sc.nextInt();

        int[][] mat1 = new int[numRow1][numCol1Row2];
        int[][] mat2 = new int[numCol1Row2][numCol2];
        long[][] matOut = new long[numRow1][numCol2];
        int i, j, k;
        for (i = 0; i < numRow1; i++) {
            for (j = 0; j < numCol1Row2; j++) {
                mat1[i][j] = sc.nextInt();
            }
        }
        for (i = 0; i < numCol1Row2; i++) {
            for (j = 0; j < numCol2; j++) {
                mat2[i][j] = sc.nextInt();
            }
        }
        for (i = 0; i < numRow1; i++) {
            for (j = 0; j < numCol2; j++) {
                for (k = 0; k < numCol1Row2; k++) {
                    matOut[i][j] += mat1[i][k] * mat2[k][j];
                }
                if (j != 0) System.out.print(" ");
                System.out.print(matOut[i][j]);
            }
            System.out.println();
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int numRow1 = sc.nextInt();
        int numCol1Row2 = sc.nextInt();
        int numCol2 = sc.nextInt();

        int[][] mat1 = new int[numRow1][numCol1Row2];
        int[][] mat2 = new int[numCol1Row2][numCol2];
        long[][] matOut = new long[numRow1][numCol2];
        int i, j, k;
        for (i = 0; i < numRow1; i++) {
            for (j = 0; j < numCol1Row2; j++) {
                mat1[i][j] = sc.nextInt();
            }
        }
        for (i = 0; i < numCol1Row2; i++) {
            for (j = 0; j < numCol2; j++) {
                mat2[i][j] = sc.nextInt();
            }
        }
        for (i = 0; i < numRow1; i++) {
            for (j = 0; j < numCol2; j++) {
                for (k = 0; k < numCol1Row2; k++) {
                    matOut[i][j] += mat1[i][k] * mat2[k][j];
                }
                if (j != 0) System.out.print(" ");
                System.out.print(matOut[i][j]);
            }
            System.out.println();
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int numRow1 = sc.nextInt(); numRow1 sc.nextInt() sc.nextInt sc int numCol1Row2 = sc.nextInt(); numCol1Row2 sc.nextInt() sc.nextInt sc int numCol2 = sc.nextInt(); numCol2 sc.nextInt() sc.nextInt sc int[][] mat1 = new int[numRow1][numCol1Row2]; mat1 new int[numRow1][numCol1Row2] numRow1 numCol1Row2 int[][] mat2 = new int[numCol1Row2][numCol2]; mat2 new int[numCol1Row2][numCol2] numCol1Row2 numCol2 long[][] matOut = new long[numRow1][numCol2]; matOut new long[numRow1][numCol2] numRow1 numCol2 int i i j j k; k for (i = 0; i < numRow1; i++) {
            for (j = 0; j < numCol1Row2; j++) {
                mat1[i][j] = sc.nextInt();
            }
        } i = 0; i = 0 i 0 i < numRow1 i numRow1 i++ i++ i {
            for (j = 0; j < numCol1Row2; j++) {
                mat1[i][j] = sc.nextInt();
            }
        } {
            for (j = 0; j < numCol1Row2; j++) {
                mat1[i][j] = sc.nextInt();
            }
        } for (j = 0; j < numCol1Row2; j++) {
                mat1[i][j] = sc.nextInt();
            } j = 0; j = 0 j 0 j < numCol1Row2 j numCol1Row2 j++ j++ j {
                mat1[i][j] = sc.nextInt();
            } {
                mat1[i][j] = sc.nextInt();
            } mat1[i][j] = sc.nextInt() mat1[i][j] mat1[i] mat1 i j sc.nextInt() sc.nextInt sc for (i = 0; i < numCol1Row2; i++) {
            for (j = 0; j < numCol2; j++) {
                mat2[i][j] = sc.nextInt();
            }
        } i = 0; i = 0 i 0 i < numCol1Row2 i numCol1Row2 i++ i++ i {
            for (j = 0; j < numCol2; j++) {
                mat2[i][j] = sc.nextInt();
            }
        } {
            for (j = 0; j < numCol2; j++) {
                mat2[i][j] = sc.nextInt();
            }
        } for (j = 0; j < numCol2; j++) {
                mat2[i][j] = sc.nextInt();
            } j = 0; j = 0 j 0 j < numCol2 j numCol2 j++ j++ j {
                mat2[i][j] = sc.nextInt();
            } {
                mat2[i][j] = sc.nextInt();
            } mat2[i][j] = sc.nextInt() mat2[i][j] mat2[i] mat2 i j sc.nextInt() sc.nextInt sc for (i = 0; i < numRow1; i++) {
            for (j = 0; j < numCol2; j++) {
                for (k = 0; k < numCol1Row2; k++) {
                    matOut[i][j] += mat1[i][k] * mat2[k][j];
                }
                if (j != 0) System.out.print(" ");
                System.out.print(matOut[i][j]);
            }
            System.out.println();
        } i = 0; i = 0 i 0 i < numRow1 i numRow1 i++ i++ i {
            for (j = 0; j < numCol2; j++) {
                for (k = 0; k < numCol1Row2; k++) {
                    matOut[i][j] += mat1[i][k] * mat2[k][j];
                }
                if (j != 0) System.out.print(" ");
                System.out.print(matOut[i][j]);
            }
            System.out.println();
        } {
            for (j = 0; j < numCol2; j++) {
                for (k = 0; k < numCol1Row2; k++) {
                    matOut[i][j] += mat1[i][k] * mat2[k][j];
                }
                if (j != 0) System.out.print(" ");
                System.out.print(matOut[i][j]);
            }
            System.out.println();
        } for (j = 0; j < numCol2; j++) {
                for (k = 0; k < numCol1Row2; k++) {
                    matOut[i][j] += mat1[i][k] * mat2[k][j];
                }
                if (j != 0) System.out.print(" ");
                System.out.print(matOut[i][j]);
            } j = 0; j = 0 j 0 j < numCol2 j numCol2 j++ j++ j {
                for (k = 0; k < numCol1Row2; k++) {
                    matOut[i][j] += mat1[i][k] * mat2[k][j];
                }
                if (j != 0) System.out.print(" ");
                System.out.print(matOut[i][j]);
            } {
                for (k = 0; k < numCol1Row2; k++) {
                    matOut[i][j] += mat1[i][k] * mat2[k][j];
                }
                if (j != 0) System.out.print(" ");
                System.out.print(matOut[i][j]);
            } for (k = 0; k < numCol1Row2; k++) {
                    matOut[i][j] += mat1[i][k] * mat2[k][j];
                } k = 0; k = 0 k 0 k < numCol1Row2 k numCol1Row2 k++ k++ k {
                    matOut[i][j] += mat1[i][k] * mat2[k][j];
                } {
                    matOut[i][j] += mat1[i][k] * mat2[k][j];
                } matOut[i][j] += mat1[i][k] * mat2[k][j] matOut[i][j] matOut[i] matOut i j mat1[i][k] * mat2[k][j] mat1[i][k] mat1[i] mat1 i k mat2[k][j] mat2[k] mat2 k j if (j != 0) System.out.print(" "); j != 0 j 0 System.out.print(" ") System.out.print System.out System System.out " " System.out.print(matOut[i][j]) System.out.print System.out System System.out matOut[i][j] matOut[i] matOut i j System.out.println() System.out.println System.out System System.out String[] args args
import java.util.Scanner;

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

        int[][] mat1 = new int[numRow1][numCol1Row2];
        int[][] mat2 = new int[numCol1Row2][numCol2];
        long[][] matOut = new long[numRow1][numCol2];
        int i, j, k;
        for (i = 0; i < numRow1; i++) {
            for (j = 0; j < numCol1Row2; j++) {
                mat1[i][j] = sc.nextInt();
            }
        }
        for (i = 0; i < numCol1Row2; i++) {
            for (j = 0; j < numCol2; j++) {
                mat2[i][j] = sc.nextInt();
            }
        }
        for (i = 0; i < numRow1; i++) {
            for (j = 0; j < numCol2; j++) {
                for (k = 0; k < numCol1Row2; k++) {
                    matOut[i][j] += mat1[i][k] * mat2[k][j];
                }
                if (j != 0) System.out.print(" ");
                System.out.print(matOut[i][j]);
            }
            System.out.println();
        }
    }
}
