import java.io.*;

class Main {
    public static void main (String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] input = br.readLine().split(" ");
        int n = Integer.parseInt(input[0]);
        int m = Integer.parseInt(input[1]);
        int l = Integer.parseInt(input[2]);
        int[][] A = new int[n][m];
        int[][] B = new int[m][l];

        int i, j;
        for (i = 0; i < n; i++) {
            input = br.readLine().split(" ");
            for (j = 0; j < m; j++) {
                A[i][j] = Integer.parseInt(input[j]);
            }
        }
        for (i = 0; i < m; i++) {
            input = br.readLine().split(" ");
            for (j = 0; j < l; j++) {
                B[i][j] = Integer.parseInt(input[j]);
            }
        }

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

        int i, j;
        for (i = 0; i < n; i++) {
            input = br.readLine().split(" ");
            for (j = 0; j < m; j++) {
                A[i][j] = Integer.parseInt(input[j]);
            }
        }
        for (i = 0; i < m; i++) {
            input = br.readLine().split(" ");
            for (j = 0; j < l; j++) {
                B[i][j] = Integer.parseInt(input[j]);
            }
        }

        int k;
        long sum;
        for (i = 0; i < n; i++) {
            for (j = 0; j < l; j++) {
                sum = 0;
                for (k = 0; k < m; k++) {
                    sum += A[i][k] * B[k][j];
                }
                System.out.print(sum + ((j == l - 1) ? "" : " "));
            }
            System.out.println();
        }
    }
} Main public static void main (String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] input = br.readLine().split(" ");
        int n = Integer.parseInt(input[0]);
        int m = Integer.parseInt(input[1]);
        int l = Integer.parseInt(input[2]);
        int[][] A = new int[n][m];
        int[][] B = new int[m][l];

        int i, j;
        for (i = 0; i < n; i++) {
            input = br.readLine().split(" ");
            for (j = 0; j < m; j++) {
                A[i][j] = Integer.parseInt(input[j]);
            }
        }
        for (i = 0; i < m; i++) {
            input = br.readLine().split(" ");
            for (j = 0; j < l; j++) {
                B[i][j] = Integer.parseInt(input[j]);
            }
        }

        int k;
        long sum;
        for (i = 0; i < n; i++) {
            for (j = 0; j < l; j++) {
                sum = 0;
                for (k = 0; k < m; k++) {
                    sum += A[i][k] * B[k][j];
                }
                System.out.print(sum + ((j == l - 1) ? "" : " "));
            }
            System.out.println();
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] input = br.readLine().split(" ");
        int n = Integer.parseInt(input[0]);
        int m = Integer.parseInt(input[1]);
        int l = Integer.parseInt(input[2]);
        int[][] A = new int[n][m];
        int[][] B = new int[m][l];

        int i, j;
        for (i = 0; i < n; i++) {
            input = br.readLine().split(" ");
            for (j = 0; j < m; j++) {
                A[i][j] = Integer.parseInt(input[j]);
            }
        }
        for (i = 0; i < m; i++) {
            input = br.readLine().split(" ");
            for (j = 0; j < l; j++) {
                B[i][j] = Integer.parseInt(input[j]);
            }
        }

        int k;
        long sum;
        for (i = 0; i < n; i++) {
            for (j = 0; j < l; j++) {
                sum = 0;
                for (k = 0; k < m; k++) {
                    sum += A[i][k] * B[k][j];
                }
                System.out.print(sum + ((j == l - 1) ? "" : " "));
            }
            System.out.println();
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] input = br.readLine().split(" "); input br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int n = Integer.parseInt(input[0]); n Integer.parseInt(input[0]) Integer.parseInt Integer input[0] input 0 int m = Integer.parseInt(input[1]); m Integer.parseInt(input[1]) Integer.parseInt Integer input[1] input 1 int l = Integer.parseInt(input[2]); l Integer.parseInt(input[2]) Integer.parseInt Integer input[2] input 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 int i i j; j for (i = 0; i < n; i++) {
            input = br.readLine().split(" ");
            for (j = 0; j < m; j++) {
                A[i][j] = Integer.parseInt(input[j]);
            }
        } i = 0; i = 0 i 0 i < n i n i++ i++ i {
            input = br.readLine().split(" ");
            for (j = 0; j < m; j++) {
                A[i][j] = Integer.parseInt(input[j]);
            }
        } {
            input = br.readLine().split(" ");
            for (j = 0; j < m; j++) {
                A[i][j] = Integer.parseInt(input[j]);
            }
        } input = br.readLine().split(" ") input br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " for (j = 0; j < m; j++) {
                A[i][j] = Integer.parseInt(input[j]);
            } j = 0; j = 0 j 0 j < m j m j++ j++ j {
                A[i][j] = Integer.parseInt(input[j]);
            } {
                A[i][j] = Integer.parseInt(input[j]);
            } A[i][j] = Integer.parseInt(input[j]) A[i][j] A[i] A i j Integer.parseInt(input[j]) Integer.parseInt Integer input[j] input j for (i = 0; i < m; i++) {
            input = br.readLine().split(" ");
            for (j = 0; j < l; j++) {
                B[i][j] = Integer.parseInt(input[j]);
            }
        } i = 0; i = 0 i 0 i < m i m i++ i++ i {
            input = br.readLine().split(" ");
            for (j = 0; j < l; j++) {
                B[i][j] = Integer.parseInt(input[j]);
            }
        } {
            input = br.readLine().split(" ");
            for (j = 0; j < l; j++) {
                B[i][j] = Integer.parseInt(input[j]);
            }
        } input = br.readLine().split(" ") input br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " for (j = 0; j < l; j++) {
                B[i][j] = Integer.parseInt(input[j]);
            } j = 0; j = 0 j 0 j < l j l j++ j++ j {
                B[i][j] = Integer.parseInt(input[j]);
            } {
                B[i][j] = Integer.parseInt(input[j]);
            } B[i][j] = Integer.parseInt(input[j]) B[i][j] B[i] B i j Integer.parseInt(input[j]) Integer.parseInt Integer input[j] input j int k; k long sum; sum for (i = 0; i < n; i++) {
            for (j = 0; j < l; j++) {
                sum = 0;
                for (k = 0; k < m; k++) {
                    sum += A[i][k] * B[k][j];
                }
                System.out.print(sum + ((j == l - 1) ? "" : " "));
            }
            System.out.println();
        } i = 0; i = 0 i 0 i < n i n i++ i++ i {
            for (j = 0; j < l; j++) {
                sum = 0;
                for (k = 0; k < m; k++) {
                    sum += A[i][k] * B[k][j];
                }
                System.out.print(sum + ((j == l - 1) ? "" : " "));
            }
            System.out.println();
        } {
            for (j = 0; j < l; j++) {
                sum = 0;
                for (k = 0; k < m; k++) {
                    sum += A[i][k] * B[k][j];
                }
                System.out.print(sum + ((j == l - 1) ? "" : " "));
            }
            System.out.println();
        } for (j = 0; j < l; j++) {
                sum = 0;
                for (k = 0; k < m; k++) {
                    sum += A[i][k] * B[k][j];
                }
                System.out.print(sum + ((j == l - 1) ? "" : " "));
            } j = 0; j = 0 j 0 j < l j l j++ j++ j {
                sum = 0;
                for (k = 0; k < m; k++) {
                    sum += A[i][k] * B[k][j];
                }
                System.out.print(sum + ((j == l - 1) ? "" : " "));
            } {
                sum = 0;
                for (k = 0; k < m; k++) {
                    sum += A[i][k] * B[k][j];
                }
                System.out.print(sum + ((j == l - 1) ? "" : " "));
            } sum = 0 sum 0 for (k = 0; k < m; k++) {
                    sum += A[i][k] * B[k][j];
                } k = 0; k = 0 k 0 k < m k m k++ k++ k {
                    sum += A[i][k] * B[k][j];
                } {
                    sum += A[i][k] * B[k][j];
                } sum += A[i][k] * B[k][j] sum A[i][k] * B[k][j] A[i][k] A[i] A i k B[k][j] B[k] B k j System.out.print(sum + ((j == l - 1) ? "" : " ")) System.out.print System.out System System.out sum + ((j == l - 1) ? "" : " ") sum ((j == l - 1) ? "" : " ") (j == l - 1) j l - 1 l 1 "" " " System.out.println() System.out.println System.out System System.out String[] args args
import java.io.*;

class Main {
    public static void main (String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] input = br.readLine().split(" ");
        int n = Integer.parseInt(input[0]);
        int m = Integer.parseInt(input[1]);
        int l = Integer.parseInt(input[2]);
        int[][] A = new int[n][m];
        int[][] B = new int[m][l];

        int i, j;
        for (i = 0; i < n; i++) {
            input = br.readLine().split(" ");
            for (j = 0; j < m; j++) {
                A[i][j] = Integer.parseInt(input[j]);
            }
        }
        for (i = 0; i < m; i++) {
            input = br.readLine().split(" ");
            for (j = 0; j < l; j++) {
                B[i][j] = Integer.parseInt(input[j]);
            }
        }

        int k;
        long sum;
        for (i = 0; i < n; i++) {
            for (j = 0; j < l; j++) {
                sum = 0;
                for (k = 0; k < m; k++) {
                    sum += A[i][k] * B[k][j];
                }
                System.out.print(sum + ((j == l - 1) ? "" : " "));
            }
            System.out.println();
        }
    }
}