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