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

class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String input_data[];
        int n, m, l;
        long mx1[][], mx2[][], mx3[][];
        try {
            input_data = br.readLine().split(" ");
            n = Integer.parseInt(input_data[0]);
            m = Integer.parseInt(input_data[1]);
            l = Integer.parseInt(input_data[2]);

            mx1 = new long[n][m];
            mx2 = new long[m][l];
            mx3 = new long[n][l];

            // TODOdata input
            for (int i = 0; i < n; i++) {
                input_data = br.readLine().split(" ");
                for (int j = 0; j < m; j++)
                    mx1[i][j] = Integer.parseInt(input_data[j]);
            }
            for (int i = 0; i < m; i++) {
                input_data = br.readLine().split(" ");
                for (int j = 0; j < l; j++)
                    mx2[i][j] = Integer.parseInt(input_data[j]);
            }

            // calc
            for (int i = 0; i < n; i++) {
                for (int j = 0; j < l; j++) {
                    for (int k = 0; k < m; k++) {
                        mx3[i][j] += mx1[i][k] * mx2[k][j];
                    }
                }
            }

            // print
            for (int i = 0; i < n; i++) {
                for (int j = 0; j < l; j++) {
                    if (j != 0)
                        System.out.print(" ");
                    System.out.printf("%d", mx3[i][j]);
                }
                System.out.print("\n");
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String input_data[];
        int n, m, l;
        long mx1[][], mx2[][], mx3[][];
        try {
            input_data = br.readLine().split(" ");
            n = Integer.parseInt(input_data[0]);
            m = Integer.parseInt(input_data[1]);
            l = Integer.parseInt(input_data[2]);

            mx1 = new long[n][m];
            mx2 = new long[m][l];
            mx3 = new long[n][l];

            // TODOdata input
            for (int i = 0; i < n; i++) {
                input_data = br.readLine().split(" ");
                for (int j = 0; j < m; j++)
                    mx1[i][j] = Integer.parseInt(input_data[j]);
            }
            for (int i = 0; i < m; i++) {
                input_data = br.readLine().split(" ");
                for (int j = 0; j < l; j++)
                    mx2[i][j] = Integer.parseInt(input_data[j]);
            }

            // calc
            for (int i = 0; i < n; i++) {
                for (int j = 0; j < l; j++) {
                    for (int k = 0; k < m; k++) {
                        mx3[i][j] += mx1[i][k] * mx2[k][j];
                    }
                }
            }

            // print
            for (int i = 0; i < n; i++) {
                for (int j = 0; j < l; j++) {
                    if (j != 0)
                        System.out.print(" ");
                    System.out.printf("%d", mx3[i][j]);
                }
                System.out.print("\n");
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
} Main public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String input_data[];
        int n, m, l;
        long mx1[][], mx2[][], mx3[][];
        try {
            input_data = br.readLine().split(" ");
            n = Integer.parseInt(input_data[0]);
            m = Integer.parseInt(input_data[1]);
            l = Integer.parseInt(input_data[2]);

            mx1 = new long[n][m];
            mx2 = new long[m][l];
            mx3 = new long[n][l];

            // TODOdata input
            for (int i = 0; i < n; i++) {
                input_data = br.readLine().split(" ");
                for (int j = 0; j < m; j++)
                    mx1[i][j] = Integer.parseInt(input_data[j]);
            }
            for (int i = 0; i < m; i++) {
                input_data = br.readLine().split(" ");
                for (int j = 0; j < l; j++)
                    mx2[i][j] = Integer.parseInt(input_data[j]);
            }

            // calc
            for (int i = 0; i < n; i++) {
                for (int j = 0; j < l; j++) {
                    for (int k = 0; k < m; k++) {
                        mx3[i][j] += mx1[i][k] * mx2[k][j];
                    }
                }
            }

            // print
            for (int i = 0; i < n; i++) {
                for (int j = 0; j < l; j++) {
                    if (j != 0)
                        System.out.print(" ");
                    System.out.printf("%d", mx3[i][j]);
                }
                System.out.print("\n");
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String input_data[];
        int n, m, l;
        long mx1[][], mx2[][], mx3[][];
        try {
            input_data = br.readLine().split(" ");
            n = Integer.parseInt(input_data[0]);
            m = Integer.parseInt(input_data[1]);
            l = Integer.parseInt(input_data[2]);

            mx1 = new long[n][m];
            mx2 = new long[m][l];
            mx3 = new long[n][l];

            // TODOdata input
            for (int i = 0; i < n; i++) {
                input_data = br.readLine().split(" ");
                for (int j = 0; j < m; j++)
                    mx1[i][j] = Integer.parseInt(input_data[j]);
            }
            for (int i = 0; i < m; i++) {
                input_data = br.readLine().split(" ");
                for (int j = 0; j < l; j++)
                    mx2[i][j] = Integer.parseInt(input_data[j]);
            }

            // calc
            for (int i = 0; i < n; i++) {
                for (int j = 0; j < l; j++) {
                    for (int k = 0; k < m; k++) {
                        mx3[i][j] += mx1[i][k] * mx2[k][j];
                    }
                }
            }

            // print
            for (int i = 0; i < n; i++) {
                for (int j = 0; j < l; j++) {
                    if (j != 0)
                        System.out.print(" ");
                    System.out.printf("%d", mx3[i][j]);
                }
                System.out.print("\n");
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String input_data[]; input_data int n n m m l; l long mx1[][] mx1 mx2[][] mx2 mx3[][]; mx3 try {
            input_data = br.readLine().split(" ");
            n = Integer.parseInt(input_data[0]);
            m = Integer.parseInt(input_data[1]);
            l = Integer.parseInt(input_data[2]);

            mx1 = new long[n][m];
            mx2 = new long[m][l];
            mx3 = new long[n][l];

            // TODOdata input
            for (int i = 0; i < n; i++) {
                input_data = br.readLine().split(" ");
                for (int j = 0; j < m; j++)
                    mx1[i][j] = Integer.parseInt(input_data[j]);
            }
            for (int i = 0; i < m; i++) {
                input_data = br.readLine().split(" ");
                for (int j = 0; j < l; j++)
                    mx2[i][j] = Integer.parseInt(input_data[j]);
            }

            // calc
            for (int i = 0; i < n; i++) {
                for (int j = 0; j < l; j++) {
                    for (int k = 0; k < m; k++) {
                        mx3[i][j] += mx1[i][k] * mx2[k][j];
                    }
                }
            }

            // print
            for (int i = 0; i < n; i++) {
                for (int j = 0; j < l; j++) {
                    if (j != 0)
                        System.out.print(" ");
                    System.out.printf("%d", mx3[i][j]);
                }
                System.out.print("\n");
            }
        } catch (IOException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } IOException e {
            e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e {
            input_data = br.readLine().split(" ");
            n = Integer.parseInt(input_data[0]);
            m = Integer.parseInt(input_data[1]);
            l = Integer.parseInt(input_data[2]);

            mx1 = new long[n][m];
            mx2 = new long[m][l];
            mx3 = new long[n][l];

            // TODOdata input
            for (int i = 0; i < n; i++) {
                input_data = br.readLine().split(" ");
                for (int j = 0; j < m; j++)
                    mx1[i][j] = Integer.parseInt(input_data[j]);
            }
            for (int i = 0; i < m; i++) {
                input_data = br.readLine().split(" ");
                for (int j = 0; j < l; j++)
                    mx2[i][j] = Integer.parseInt(input_data[j]);
            }

            // calc
            for (int i = 0; i < n; i++) {
                for (int j = 0; j < l; j++) {
                    for (int k = 0; k < m; k++) {
                        mx3[i][j] += mx1[i][k] * mx2[k][j];
                    }
                }
            }

            // print
            for (int i = 0; i < n; i++) {
                for (int j = 0; j < l; j++) {
                    if (j != 0)
                        System.out.print(" ");
                    System.out.printf("%d", mx3[i][j]);
                }
                System.out.print("\n");
            }
        } input_data = br.readLine().split(" ") input_data br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " n = Integer.parseInt(input_data[0]) n Integer.parseInt(input_data[0]) Integer.parseInt Integer input_data[0] input_data 0 m = Integer.parseInt(input_data[1]) m Integer.parseInt(input_data[1]) Integer.parseInt Integer input_data[1] input_data 1 l = Integer.parseInt(input_data[2]) l Integer.parseInt(input_data[2]) Integer.parseInt Integer input_data[2] input_data 2 mx1 = new long[n][m] mx1 new long[n][m] n m mx2 = new long[m][l] mx2 new long[m][l] m l mx3 = new long[n][l] mx3 new long[n][l] n l for (int i = 0; i < n; i++) {
                input_data = br.readLine().split(" ");
                for (int j = 0; j < m; j++)
                    mx1[i][j] = Integer.parseInt(input_data[j]);
            } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
                input_data = br.readLine().split(" ");
                for (int j = 0; j < m; j++)
                    mx1[i][j] = Integer.parseInt(input_data[j]);
            } {
                input_data = br.readLine().split(" ");
                for (int j = 0; j < m; j++)
                    mx1[i][j] = Integer.parseInt(input_data[j]);
            } input_data = br.readLine().split(" ") input_data br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " for (int j = 0; j < m; j++)
                    mx1[i][j] = Integer.parseInt(input_data[j]); int j = 0; int j = 0; j 0 j < m j m j++ j++ j mx1[i][j] = Integer.parseInt(input_data[j]); mx1[i][j] = Integer.parseInt(input_data[j]) mx1[i][j] mx1[i] mx1 i j Integer.parseInt(input_data[j]) Integer.parseInt Integer input_data[j] input_data j for (int i = 0; i < m; i++) {
                input_data = br.readLine().split(" ");
                for (int j = 0; j < l; j++)
                    mx2[i][j] = Integer.parseInt(input_data[j]);
            } int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
                input_data = br.readLine().split(" ");
                for (int j = 0; j < l; j++)
                    mx2[i][j] = Integer.parseInt(input_data[j]);
            } {
                input_data = br.readLine().split(" ");
                for (int j = 0; j < l; j++)
                    mx2[i][j] = Integer.parseInt(input_data[j]);
            } input_data = br.readLine().split(" ") input_data br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " for (int j = 0; j < l; j++)
                    mx2[i][j] = Integer.parseInt(input_data[j]); int j = 0; int j = 0; j 0 j < l j l j++ j++ j mx2[i][j] = Integer.parseInt(input_data[j]); mx2[i][j] = Integer.parseInt(input_data[j]) mx2[i][j] mx2[i] mx2 i j Integer.parseInt(input_data[j]) Integer.parseInt Integer input_data[j] input_data j for (int i = 0; i < n; i++) {
                for (int j = 0; j < l; j++) {
                    for (int k = 0; k < m; k++) {
                        mx3[i][j] += mx1[i][k] * mx2[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++) {
                        mx3[i][j] += mx1[i][k] * mx2[k][j];
                    }
                }
            } {
                for (int j = 0; j < l; j++) {
                    for (int k = 0; k < m; k++) {
                        mx3[i][j] += mx1[i][k] * mx2[k][j];
                    }
                }
            } for (int j = 0; j < l; j++) {
                    for (int k = 0; k < m; k++) {
                        mx3[i][j] += mx1[i][k] * mx2[k][j];
                    }
                } int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
                    for (int k = 0; k < m; k++) {
                        mx3[i][j] += mx1[i][k] * mx2[k][j];
                    }
                } {
                    for (int k = 0; k < m; k++) {
                        mx3[i][j] += mx1[i][k] * mx2[k][j];
                    }
                } for (int k = 0; k < m; k++) {
                        mx3[i][j] += mx1[i][k] * mx2[k][j];
                    } int k = 0; int k = 0; k 0 k < m k m k++ k++ k {
                        mx3[i][j] += mx1[i][k] * mx2[k][j];
                    } {
                        mx3[i][j] += mx1[i][k] * mx2[k][j];
                    } mx3[i][j] += mx1[i][k] * mx2[k][j] mx3[i][j] mx3[i] mx3 i j mx1[i][k] * mx2[k][j] mx1[i][k] mx1[i] mx1 i k mx2[k][j] mx2[k] mx2 k j for (int i = 0; i < n; i++) {
                for (int j = 0; j < l; j++) {
                    if (j != 0)
                        System.out.print(" ");
                    System.out.printf("%d", mx3[i][j]);
                }
                System.out.print("\n");
            } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
                for (int j = 0; j < l; j++) {
                    if (j != 0)
                        System.out.print(" ");
                    System.out.printf("%d", mx3[i][j]);
                }
                System.out.print("\n");
            } {
                for (int j = 0; j < l; j++) {
                    if (j != 0)
                        System.out.print(" ");
                    System.out.printf("%d", mx3[i][j]);
                }
                System.out.print("\n");
            } for (int j = 0; j < l; j++) {
                    if (j != 0)
                        System.out.print(" ");
                    System.out.printf("%d", mx3[i][j]);
                } int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
                    if (j != 0)
                        System.out.print(" ");
                    System.out.printf("%d", mx3[i][j]);
                } {
                    if (j != 0)
                        System.out.print(" ");
                    System.out.printf("%d", mx3[i][j]);
                } if (j != 0)
                        System.out.print(" "); j != 0 j 0 System.out.print(" ") System.out.print System.out System System.out " " System.out.printf("%d", mx3[i][j]) System.out.printf System.out System System.out "%d" mx3[i][j] mx3[i] mx3 i j System.out.print("\n") System.out.print System.out System System.out "\n" String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String input_data[];
        int n, m, l;
        long mx1[][], mx2[][], mx3[][];
        try {
            input_data = br.readLine().split(" ");
            n = Integer.parseInt(input_data[0]);
            m = Integer.parseInt(input_data[1]);
            l = Integer.parseInt(input_data[2]);

            mx1 = new long[n][m];
            mx2 = new long[m][l];
            mx3 = new long[n][l];

            // TODOdata input
            for (int i = 0; i < n; i++) {
                input_data = br.readLine().split(" ");
                for (int j = 0; j < m; j++)
                    mx1[i][j] = Integer.parseInt(input_data[j]);
            }
            for (int i = 0; i < m; i++) {
                input_data = br.readLine().split(" ");
                for (int j = 0; j < l; j++)
                    mx2[i][j] = Integer.parseInt(input_data[j]);
            }

            // calc
            for (int i = 0; i < n; i++) {
                for (int j = 0; j < l; j++) {
                    for (int k = 0; k < m; k++) {
                        mx3[i][j] += mx1[i][k] * mx2[k][j];
                    }
                }
            }

            // print
            for (int i = 0; i < n; i++) {
                for (int j = 0; j < l; j++) {
                    if (j != 0)
                        System.out.print(" ");
                    System.out.printf("%d", mx3[i][j]);
                }
                System.out.print("\n");
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
