import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] ar = br.readLine().split(" ");
        int n = Integer.parseInt(ar[0]);
        int m = Integer.parseInt(ar[1]);
        int l = Integer.parseInt(ar[2]);
        int[][] a = new int[n][m];
        int[][] b = new int[m][l];
        for(int i = 0; i < a.length; i++){
            ar = br.readLine().split(" ");
            for(int j = 0; j <a[i].length; j++){
                a[i][j] = Integer.parseInt(ar[j]);
            }
        }
        for(int i = 0; i < b.length; i++){
            ar = br.readLine().split(" ");
            for(int j = 0; j <b[i].length; j++){
                b[i][j] = Integer.parseInt(ar[j]);
            }
        }
        for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
                long ans = 0;
                for(int k = 0; k < m; k++){
                    ans += a[i][k] * b[k][j];
                }
                if(j == l-1){
                    System.out.println(ans);
                }else{
                    System.out.print(ans+" ");
                }
            }
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] ar = br.readLine().split(" ");
        int n = Integer.parseInt(ar[0]);
        int m = Integer.parseInt(ar[1]);
        int l = Integer.parseInt(ar[2]);
        int[][] a = new int[n][m];
        int[][] b = new int[m][l];
        for(int i = 0; i < a.length; i++){
            ar = br.readLine().split(" ");
            for(int j = 0; j <a[i].length; j++){
                a[i][j] = Integer.parseInt(ar[j]);
            }
        }
        for(int i = 0; i < b.length; i++){
            ar = br.readLine().split(" ");
            for(int j = 0; j <b[i].length; j++){
                b[i][j] = Integer.parseInt(ar[j]);
            }
        }
        for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
                long ans = 0;
                for(int k = 0; k < m; k++){
                    ans += a[i][k] * b[k][j];
                }
                if(j == l-1){
                    System.out.println(ans);
                }else{
                    System.out.print(ans+" ");
                }
            }
        }
    }
} Main public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] ar = br.readLine().split(" ");
        int n = Integer.parseInt(ar[0]);
        int m = Integer.parseInt(ar[1]);
        int l = Integer.parseInt(ar[2]);
        int[][] a = new int[n][m];
        int[][] b = new int[m][l];
        for(int i = 0; i < a.length; i++){
            ar = br.readLine().split(" ");
            for(int j = 0; j <a[i].length; j++){
                a[i][j] = Integer.parseInt(ar[j]);
            }
        }
        for(int i = 0; i < b.length; i++){
            ar = br.readLine().split(" ");
            for(int j = 0; j <b[i].length; j++){
                b[i][j] = Integer.parseInt(ar[j]);
            }
        }
        for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
                long ans = 0;
                for(int k = 0; k < m; k++){
                    ans += a[i][k] * b[k][j];
                }
                if(j == l-1){
                    System.out.println(ans);
                }else{
                    System.out.print(ans+" ");
                }
            }
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] ar = br.readLine().split(" ");
        int n = Integer.parseInt(ar[0]);
        int m = Integer.parseInt(ar[1]);
        int l = Integer.parseInt(ar[2]);
        int[][] a = new int[n][m];
        int[][] b = new int[m][l];
        for(int i = 0; i < a.length; i++){
            ar = br.readLine().split(" ");
            for(int j = 0; j <a[i].length; j++){
                a[i][j] = Integer.parseInt(ar[j]);
            }
        }
        for(int i = 0; i < b.length; i++){
            ar = br.readLine().split(" ");
            for(int j = 0; j <b[i].length; j++){
                b[i][j] = Integer.parseInt(ar[j]);
            }
        }
        for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
                long ans = 0;
                for(int k = 0; k < m; k++){
                    ans += a[i][k] * b[k][j];
                }
                if(j == l-1){
                    System.out.println(ans);
                }else{
                    System.out.print(ans+" ");
                }
            }
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] ar = br.readLine().split(" "); ar br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int n = Integer.parseInt(ar[0]); n Integer.parseInt(ar[0]) Integer.parseInt Integer ar[0] ar 0 int m = Integer.parseInt(ar[1]); m Integer.parseInt(ar[1]) Integer.parseInt Integer ar[1] ar 1 int l = Integer.parseInt(ar[2]); l Integer.parseInt(ar[2]) Integer.parseInt Integer ar[2] ar 2 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 < a.length; i++){
            ar = br.readLine().split(" ");
            for(int j = 0; j <a[i].length; j++){
                a[i][j] = Integer.parseInt(ar[j]);
            }
        } int i = 0; int i = 0; i 0 i < a.length i a.length a a.length i++ i++ i {
            ar = br.readLine().split(" ");
            for(int j = 0; j <a[i].length; j++){
                a[i][j] = Integer.parseInt(ar[j]);
            }
        } {
            ar = br.readLine().split(" ");
            for(int j = 0; j <a[i].length; j++){
                a[i][j] = Integer.parseInt(ar[j]);
            }
        } ar = br.readLine().split(" ") ar br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " for(int j = 0; j <a[i].length; j++){
                a[i][j] = Integer.parseInt(ar[j]);
            } int j = 0; int j = 0; j 0 j <a[i].length j a[i].length a[i] a i a[i].length j++ j++ j {
                a[i][j] = Integer.parseInt(ar[j]);
            } {
                a[i][j] = Integer.parseInt(ar[j]);
            } a[i][j] = Integer.parseInt(ar[j]) a[i][j] a[i] a i j Integer.parseInt(ar[j]) Integer.parseInt Integer ar[j] ar j for(int i = 0; i < b.length; i++){
            ar = br.readLine().split(" ");
            for(int j = 0; j <b[i].length; j++){
                b[i][j] = Integer.parseInt(ar[j]);
            }
        } int i = 0; int i = 0; i 0 i < b.length i b.length b b.length i++ i++ i {
            ar = br.readLine().split(" ");
            for(int j = 0; j <b[i].length; j++){
                b[i][j] = Integer.parseInt(ar[j]);
            }
        } {
            ar = br.readLine().split(" ");
            for(int j = 0; j <b[i].length; j++){
                b[i][j] = Integer.parseInt(ar[j]);
            }
        } ar = br.readLine().split(" ") ar br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " for(int j = 0; j <b[i].length; j++){
                b[i][j] = Integer.parseInt(ar[j]);
            } int j = 0; int j = 0; j 0 j <b[i].length j b[i].length b[i] b i b[i].length j++ j++ j {
                b[i][j] = Integer.parseInt(ar[j]);
            } {
                b[i][j] = Integer.parseInt(ar[j]);
            } b[i][j] = Integer.parseInt(ar[j]) b[i][j] b[i] b i j Integer.parseInt(ar[j]) Integer.parseInt Integer ar[j] ar j for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
                long ans = 0;
                for(int k = 0; k < m; k++){
                    ans += a[i][k] * b[k][j];
                }
                if(j == l-1){
                    System.out.println(ans);
                }else{
                    System.out.print(ans+" ");
                }
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            for(int j = 0; j < l; j++){
                long ans = 0;
                for(int k = 0; k < m; k++){
                    ans += a[i][k] * b[k][j];
                }
                if(j == l-1){
                    System.out.println(ans);
                }else{
                    System.out.print(ans+" ");
                }
            }
        } {
            for(int j = 0; j < l; j++){
                long ans = 0;
                for(int k = 0; k < m; k++){
                    ans += a[i][k] * b[k][j];
                }
                if(j == l-1){
                    System.out.println(ans);
                }else{
                    System.out.print(ans+" ");
                }
            }
        } for(int j = 0; j < l; j++){
                long ans = 0;
                for(int k = 0; k < m; k++){
                    ans += a[i][k] * b[k][j];
                }
                if(j == l-1){
                    System.out.println(ans);
                }else{
                    System.out.print(ans+" ");
                }
            } int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
                long ans = 0;
                for(int k = 0; k < m; k++){
                    ans += a[i][k] * b[k][j];
                }
                if(j == l-1){
                    System.out.println(ans);
                }else{
                    System.out.print(ans+" ");
                }
            } {
                long ans = 0;
                for(int k = 0; k < m; k++){
                    ans += a[i][k] * b[k][j];
                }
                if(j == l-1){
                    System.out.println(ans);
                }else{
                    System.out.print(ans+" ");
                }
            } long ans = 0; ans 0 for(int k = 0; k < m; k++){
                    ans += a[i][k] * b[k][j];
                } int k = 0; int k = 0; k 0 k < m k m k++ k++ k {
                    ans += a[i][k] * b[k][j];
                } {
                    ans += a[i][k] * b[k][j];
                } ans += a[i][k] * b[k][j] ans 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.println(ans);
                }else{
                    System.out.print(ans+" ");
                } j == l-1 j l-1 l 1 {
                    System.out.println(ans);
                } System.out.println(ans) System.out.println System.out System System.out ans {
                    System.out.print(ans+" ");
                } System.out.print(ans+" ") System.out.print System.out System System.out ans+" " ans " " String[] args args public class Main {

    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] ar = br.readLine().split(" ");
        int n = Integer.parseInt(ar[0]);
        int m = Integer.parseInt(ar[1]);
        int l = Integer.parseInt(ar[2]);
        int[][] a = new int[n][m];
        int[][] b = new int[m][l];
        for(int i = 0; i < a.length; i++){
            ar = br.readLine().split(" ");
            for(int j = 0; j <a[i].length; j++){
                a[i][j] = Integer.parseInt(ar[j]);
            }
        }
        for(int i = 0; i < b.length; i++){
            ar = br.readLine().split(" ");
            for(int j = 0; j <b[i].length; j++){
                b[i][j] = Integer.parseInt(ar[j]);
            }
        }
        for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
                long ans = 0;
                for(int k = 0; k < m; k++){
                    ans += a[i][k] * b[k][j];
                }
                if(j == l-1){
                    System.out.println(ans);
                }else{
                    System.out.print(ans+" ");
                }
            }
        }
    }
} public class Main {

    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] ar = br.readLine().split(" ");
        int n = Integer.parseInt(ar[0]);
        int m = Integer.parseInt(ar[1]);
        int l = Integer.parseInt(ar[2]);
        int[][] a = new int[n][m];
        int[][] b = new int[m][l];
        for(int i = 0; i < a.length; i++){
            ar = br.readLine().split(" ");
            for(int j = 0; j <a[i].length; j++){
                a[i][j] = Integer.parseInt(ar[j]);
            }
        }
        for(int i = 0; i < b.length; i++){
            ar = br.readLine().split(" ");
            for(int j = 0; j <b[i].length; j++){
                b[i][j] = Integer.parseInt(ar[j]);
            }
        }
        for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
                long ans = 0;
                for(int k = 0; k < m; k++){
                    ans += a[i][k] * b[k][j];
                }
                if(j == l-1){
                    System.out.println(ans);
                }else{
                    System.out.print(ans+" ");
                }
            }
        }
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] ar = br.readLine().split(" ");
        int n = Integer.parseInt(ar[0]);
        int m = Integer.parseInt(ar[1]);
        int l = Integer.parseInt(ar[2]);
        int[][] a = new int[n][m];
        int[][] b = new int[m][l];
        for(int i = 0; i < a.length; i++){
            ar = br.readLine().split(" ");
            for(int j = 0; j <a[i].length; j++){
                a[i][j] = Integer.parseInt(ar[j]);
            }
        }
        for(int i = 0; i < b.length; i++){
            ar = br.readLine().split(" ");
            for(int j = 0; j <b[i].length; j++){
                b[i][j] = Integer.parseInt(ar[j]);
            }
        }
        for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
                long ans = 0;
                for(int k = 0; k < m; k++){
                    ans += a[i][k] * b[k][j];
                }
                if(j == l-1){
                    System.out.println(ans);
                }else{
                    System.out.print(ans+" ");
                }
            }
        }
    }
}