import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st;
        try {
            String line = br.readLine();
            st = new StringTokenizer(line);
            int n = Integer.parseInt(st.nextToken());
            int m = Integer.parseInt(st.nextToken());
            int l = Integer.parseInt(st.nextToken());
            long[][] matrixA = new long[n][m];
            long[][] matrixB = new long[m][l];
            long[][] matrixC = new long[n][l];
            for (int i = 0; i < n; i++) {
                line = br.readLine();
                st = new StringTokenizer(line);
                for (int j = 0; j < m; j++) {
                    matrixA[i][j] = Integer.parseInt(st.nextToken());
                }
            }
            for (int i = 0; i < m; i++) {
                line = br.readLine();
                st = new StringTokenizer(line);
                for (int j = 0; j < l; j++) {
                    matrixB[i][j] = Integer.parseInt(st.nextToken());
                }
            }
            for (int i = 0; i < n; i++) {
                for (int j = 0; j < l; j++) {
                    for (int k = 0; k < m; k++) {
                        matrixC[i][j] += matrixA[i][k]*matrixB[k][j];
                    }
                }
            }
            printMatrix(matrixC);

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
    
    private static void printMatrix(long[][] matrix){
        for (long[] longs : matrix) {
            StringBuilder sb = new StringBuilder();
            for (long anLong : longs) {
                sb.append(anLong).append(" ");
            }
            System.out.println(sb.toString().trim());
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.StringTokenizer; StringTokenizer java.util public class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st;
        try {
            String line = br.readLine();
            st = new StringTokenizer(line);
            int n = Integer.parseInt(st.nextToken());
            int m = Integer.parseInt(st.nextToken());
            int l = Integer.parseInt(st.nextToken());
            long[][] matrixA = new long[n][m];
            long[][] matrixB = new long[m][l];
            long[][] matrixC = new long[n][l];
            for (int i = 0; i < n; i++) {
                line = br.readLine();
                st = new StringTokenizer(line);
                for (int j = 0; j < m; j++) {
                    matrixA[i][j] = Integer.parseInt(st.nextToken());
                }
            }
            for (int i = 0; i < m; i++) {
                line = br.readLine();
                st = new StringTokenizer(line);
                for (int j = 0; j < l; j++) {
                    matrixB[i][j] = Integer.parseInt(st.nextToken());
                }
            }
            for (int i = 0; i < n; i++) {
                for (int j = 0; j < l; j++) {
                    for (int k = 0; k < m; k++) {
                        matrixC[i][j] += matrixA[i][k]*matrixB[k][j];
                    }
                }
            }
            printMatrix(matrixC);

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
    
    private static void printMatrix(long[][] matrix){
        for (long[] longs : matrix) {
            StringBuilder sb = new StringBuilder();
            for (long anLong : longs) {
                sb.append(anLong).append(" ");
            }
            System.out.println(sb.toString().trim());
        }
    }
} Main public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st;
        try {
            String line = br.readLine();
            st = new StringTokenizer(line);
            int n = Integer.parseInt(st.nextToken());
            int m = Integer.parseInt(st.nextToken());
            int l = Integer.parseInt(st.nextToken());
            long[][] matrixA = new long[n][m];
            long[][] matrixB = new long[m][l];
            long[][] matrixC = new long[n][l];
            for (int i = 0; i < n; i++) {
                line = br.readLine();
                st = new StringTokenizer(line);
                for (int j = 0; j < m; j++) {
                    matrixA[i][j] = Integer.parseInt(st.nextToken());
                }
            }
            for (int i = 0; i < m; i++) {
                line = br.readLine();
                st = new StringTokenizer(line);
                for (int j = 0; j < l; j++) {
                    matrixB[i][j] = Integer.parseInt(st.nextToken());
                }
            }
            for (int i = 0; i < n; i++) {
                for (int j = 0; j < l; j++) {
                    for (int k = 0; k < m; k++) {
                        matrixC[i][j] += matrixA[i][k]*matrixB[k][j];
                    }
                }
            }
            printMatrix(matrixC);

        } catch (Exception e) {
            e.printStackTrace();
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st;
        try {
            String line = br.readLine();
            st = new StringTokenizer(line);
            int n = Integer.parseInt(st.nextToken());
            int m = Integer.parseInt(st.nextToken());
            int l = Integer.parseInt(st.nextToken());
            long[][] matrixA = new long[n][m];
            long[][] matrixB = new long[m][l];
            long[][] matrixC = new long[n][l];
            for (int i = 0; i < n; i++) {
                line = br.readLine();
                st = new StringTokenizer(line);
                for (int j = 0; j < m; j++) {
                    matrixA[i][j] = Integer.parseInt(st.nextToken());
                }
            }
            for (int i = 0; i < m; i++) {
                line = br.readLine();
                st = new StringTokenizer(line);
                for (int j = 0; j < l; j++) {
                    matrixB[i][j] = Integer.parseInt(st.nextToken());
                }
            }
            for (int i = 0; i < n; i++) {
                for (int j = 0; j < l; j++) {
                    for (int k = 0; k < m; k++) {
                        matrixC[i][j] += matrixA[i][k]*matrixB[k][j];
                    }
                }
            }
            printMatrix(matrixC);

        } catch (Exception e) {
            e.printStackTrace();
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringTokenizer st; st try {
            String line = br.readLine();
            st = new StringTokenizer(line);
            int n = Integer.parseInt(st.nextToken());
            int m = Integer.parseInt(st.nextToken());
            int l = Integer.parseInt(st.nextToken());
            long[][] matrixA = new long[n][m];
            long[][] matrixB = new long[m][l];
            long[][] matrixC = new long[n][l];
            for (int i = 0; i < n; i++) {
                line = br.readLine();
                st = new StringTokenizer(line);
                for (int j = 0; j < m; j++) {
                    matrixA[i][j] = Integer.parseInt(st.nextToken());
                }
            }
            for (int i = 0; i < m; i++) {
                line = br.readLine();
                st = new StringTokenizer(line);
                for (int j = 0; j < l; j++) {
                    matrixB[i][j] = Integer.parseInt(st.nextToken());
                }
            }
            for (int i = 0; i < n; i++) {
                for (int j = 0; j < l; j++) {
                    for (int k = 0; k < m; k++) {
                        matrixC[i][j] += matrixA[i][k]*matrixB[k][j];
                    }
                }
            }
            printMatrix(matrixC);

        } catch (Exception e) {
            e.printStackTrace();
        } catch (Exception e) {
            e.printStackTrace();
        } Exception e {
            e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e {
            String line = br.readLine();
            st = new StringTokenizer(line);
            int n = Integer.parseInt(st.nextToken());
            int m = Integer.parseInt(st.nextToken());
            int l = Integer.parseInt(st.nextToken());
            long[][] matrixA = new long[n][m];
            long[][] matrixB = new long[m][l];
            long[][] matrixC = new long[n][l];
            for (int i = 0; i < n; i++) {
                line = br.readLine();
                st = new StringTokenizer(line);
                for (int j = 0; j < m; j++) {
                    matrixA[i][j] = Integer.parseInt(st.nextToken());
                }
            }
            for (int i = 0; i < m; i++) {
                line = br.readLine();
                st = new StringTokenizer(line);
                for (int j = 0; j < l; j++) {
                    matrixB[i][j] = Integer.parseInt(st.nextToken());
                }
            }
            for (int i = 0; i < n; i++) {
                for (int j = 0; j < l; j++) {
                    for (int k = 0; k < m; k++) {
                        matrixC[i][j] += matrixA[i][k]*matrixB[k][j];
                    }
                }
            }
            printMatrix(matrixC);

        } String line = br.readLine(); line br.readLine() br.readLine br st = new StringTokenizer(line) st new StringTokenizer(line) int n = Integer.parseInt(st.nextToken()); n Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st int m = Integer.parseInt(st.nextToken()); m Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st int l = Integer.parseInt(st.nextToken()); l Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st long[][] matrixA = new long[n][m]; matrixA new long[n][m] n m long[][] matrixB = new long[m][l]; matrixB new long[m][l] m l long[][] matrixC = new long[n][l]; matrixC new long[n][l] n l for (int i = 0; i < n; i++) {
                line = br.readLine();
                st = new StringTokenizer(line);
                for (int j = 0; j < m; j++) {
                    matrixA[i][j] = Integer.parseInt(st.nextToken());
                }
            } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
                line = br.readLine();
                st = new StringTokenizer(line);
                for (int j = 0; j < m; j++) {
                    matrixA[i][j] = Integer.parseInt(st.nextToken());
                }
            } {
                line = br.readLine();
                st = new StringTokenizer(line);
                for (int j = 0; j < m; j++) {
                    matrixA[i][j] = Integer.parseInt(st.nextToken());
                }
            } line = br.readLine() line br.readLine() br.readLine br st = new StringTokenizer(line) st new StringTokenizer(line) for (int j = 0; j < m; j++) {
                    matrixA[i][j] = Integer.parseInt(st.nextToken());
                } int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
                    matrixA[i][j] = Integer.parseInt(st.nextToken());
                } {
                    matrixA[i][j] = Integer.parseInt(st.nextToken());
                } matrixA[i][j] = Integer.parseInt(st.nextToken()) matrixA[i][j] matrixA[i] matrixA i j Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st for (int i = 0; i < m; i++) {
                line = br.readLine();
                st = new StringTokenizer(line);
                for (int j = 0; j < l; j++) {
                    matrixB[i][j] = Integer.parseInt(st.nextToken());
                }
            } int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
                line = br.readLine();
                st = new StringTokenizer(line);
                for (int j = 0; j < l; j++) {
                    matrixB[i][j] = Integer.parseInt(st.nextToken());
                }
            } {
                line = br.readLine();
                st = new StringTokenizer(line);
                for (int j = 0; j < l; j++) {
                    matrixB[i][j] = Integer.parseInt(st.nextToken());
                }
            } line = br.readLine() line br.readLine() br.readLine br st = new StringTokenizer(line) st new StringTokenizer(line) for (int j = 0; j < l; j++) {
                    matrixB[i][j] = Integer.parseInt(st.nextToken());
                } int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
                    matrixB[i][j] = Integer.parseInt(st.nextToken());
                } {
                    matrixB[i][j] = Integer.parseInt(st.nextToken());
                } matrixB[i][j] = Integer.parseInt(st.nextToken()) matrixB[i][j] matrixB[i] matrixB i j Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st for (int i = 0; i < n; i++) {
                for (int j = 0; j < l; j++) {
                    for (int k = 0; k < m; k++) {
                        matrixC[i][j] += matrixA[i][k]*matrixB[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++) {
                        matrixC[i][j] += matrixA[i][k]*matrixB[k][j];
                    }
                }
            } {
                for (int j = 0; j < l; j++) {
                    for (int k = 0; k < m; k++) {
                        matrixC[i][j] += matrixA[i][k]*matrixB[k][j];
                    }
                }
            } for (int j = 0; j < l; j++) {
                    for (int k = 0; k < m; k++) {
                        matrixC[i][j] += matrixA[i][k]*matrixB[k][j];
                    }
                } int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
                    for (int k = 0; k < m; k++) {
                        matrixC[i][j] += matrixA[i][k]*matrixB[k][j];
                    }
                } {
                    for (int k = 0; k < m; k++) {
                        matrixC[i][j] += matrixA[i][k]*matrixB[k][j];
                    }
                } for (int k = 0; k < m; k++) {
                        matrixC[i][j] += matrixA[i][k]*matrixB[k][j];
                    } int k = 0; int k = 0; k 0 k < m k m k++ k++ k {
                        matrixC[i][j] += matrixA[i][k]*matrixB[k][j];
                    } {
                        matrixC[i][j] += matrixA[i][k]*matrixB[k][j];
                    } matrixC[i][j] += matrixA[i][k]*matrixB[k][j] matrixC[i][j] matrixC[i] matrixC i j matrixA[i][k]*matrixB[k][j] matrixA[i][k] matrixA[i] matrixA i k matrixB[k][j] matrixB[k] matrixB k j printMatrix(matrixC) printMatrix matrixC String[] args args private static void printMatrix(long[][] matrix){
        for (long[] longs : matrix) {
            StringBuilder sb = new StringBuilder();
            for (long anLong : longs) {
                sb.append(anLong).append(" ");
            }
            System.out.println(sb.toString().trim());
        }
    } printMatrix {
        for (long[] longs : matrix) {
            StringBuilder sb = new StringBuilder();
            for (long anLong : longs) {
                sb.append(anLong).append(" ");
            }
            System.out.println(sb.toString().trim());
        }
    } for (long[] longs : matrix) {
            StringBuilder sb = new StringBuilder();
            for (long anLong : longs) {
                sb.append(anLong).append(" ");
            }
            System.out.println(sb.toString().trim());
        } long[] longs matrix {
            StringBuilder sb = new StringBuilder();
            for (long anLong : longs) {
                sb.append(anLong).append(" ");
            }
            System.out.println(sb.toString().trim());
        } {
            StringBuilder sb = new StringBuilder();
            for (long anLong : longs) {
                sb.append(anLong).append(" ");
            }
            System.out.println(sb.toString().trim());
        } StringBuilder sb = new StringBuilder(); sb new StringBuilder() for (long anLong : longs) {
                sb.append(anLong).append(" ");
            } long anLong longs {
                sb.append(anLong).append(" ");
            } {
                sb.append(anLong).append(" ");
            } sb.append(anLong).append(" ") sb.append(anLong).append sb.append(anLong) sb.append sb anLong " " System.out.println(sb.toString().trim()) System.out.println System.out System System.out sb.toString().trim() sb.toString().trim sb.toString() sb.toString sb long[][] matrix matrix public class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st;
        try {
            String line = br.readLine();
            st = new StringTokenizer(line);
            int n = Integer.parseInt(st.nextToken());
            int m = Integer.parseInt(st.nextToken());
            int l = Integer.parseInt(st.nextToken());
            long[][] matrixA = new long[n][m];
            long[][] matrixB = new long[m][l];
            long[][] matrixC = new long[n][l];
            for (int i = 0; i < n; i++) {
                line = br.readLine();
                st = new StringTokenizer(line);
                for (int j = 0; j < m; j++) {
                    matrixA[i][j] = Integer.parseInt(st.nextToken());
                }
            }
            for (int i = 0; i < m; i++) {
                line = br.readLine();
                st = new StringTokenizer(line);
                for (int j = 0; j < l; j++) {
                    matrixB[i][j] = Integer.parseInt(st.nextToken());
                }
            }
            for (int i = 0; i < n; i++) {
                for (int j = 0; j < l; j++) {
                    for (int k = 0; k < m; k++) {
                        matrixC[i][j] += matrixA[i][k]*matrixB[k][j];
                    }
                }
            }
            printMatrix(matrixC);

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
    
    private static void printMatrix(long[][] matrix){
        for (long[] longs : matrix) {
            StringBuilder sb = new StringBuilder();
            for (long anLong : longs) {
                sb.append(anLong).append(" ");
            }
            System.out.println(sb.toString().trim());
        }
    }
} public class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st;
        try {
            String line = br.readLine();
            st = new StringTokenizer(line);
            int n = Integer.parseInt(st.nextToken());
            int m = Integer.parseInt(st.nextToken());
            int l = Integer.parseInt(st.nextToken());
            long[][] matrixA = new long[n][m];
            long[][] matrixB = new long[m][l];
            long[][] matrixC = new long[n][l];
            for (int i = 0; i < n; i++) {
                line = br.readLine();
                st = new StringTokenizer(line);
                for (int j = 0; j < m; j++) {
                    matrixA[i][j] = Integer.parseInt(st.nextToken());
                }
            }
            for (int i = 0; i < m; i++) {
                line = br.readLine();
                st = new StringTokenizer(line);
                for (int j = 0; j < l; j++) {
                    matrixB[i][j] = Integer.parseInt(st.nextToken());
                }
            }
            for (int i = 0; i < n; i++) {
                for (int j = 0; j < l; j++) {
                    for (int k = 0; k < m; k++) {
                        matrixC[i][j] += matrixA[i][k]*matrixB[k][j];
                    }
                }
            }
            printMatrix(matrixC);

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
    
    private static void printMatrix(long[][] matrix){
        for (long[] longs : matrix) {
            StringBuilder sb = new StringBuilder();
            for (long anLong : longs) {
                sb.append(anLong).append(" ");
            }
            System.out.println(sb.toString().trim());
        }
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st;
        try {
            String line = br.readLine();
            st = new StringTokenizer(line);
            int n = Integer.parseInt(st.nextToken());
            int m = Integer.parseInt(st.nextToken());
            int l = Integer.parseInt(st.nextToken());
            long[][] matrixA = new long[n][m];
            long[][] matrixB = new long[m][l];
            long[][] matrixC = new long[n][l];
            for (int i = 0; i < n; i++) {
                line = br.readLine();
                st = new StringTokenizer(line);
                for (int j = 0; j < m; j++) {
                    matrixA[i][j] = Integer.parseInt(st.nextToken());
                }
            }
            for (int i = 0; i < m; i++) {
                line = br.readLine();
                st = new StringTokenizer(line);
                for (int j = 0; j < l; j++) {
                    matrixB[i][j] = Integer.parseInt(st.nextToken());
                }
            }
            for (int i = 0; i < n; i++) {
                for (int j = 0; j < l; j++) {
                    for (int k = 0; k < m; k++) {
                        matrixC[i][j] += matrixA[i][k]*matrixB[k][j];
                    }
                }
            }
            printMatrix(matrixC);

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
    
    private static void printMatrix(long[][] matrix){
        for (long[] longs : matrix) {
            StringBuilder sb = new StringBuilder();
            for (long anLong : longs) {
                sb.append(anLong).append(" ");
            }
            System.out.println(sb.toString().trim());
        }
    }
}