import java.util.Scanner;
import java.util.function.Function;

public class Main {

    public static void main(String[] args) {
        new Main().solve();
    }

    Scanner sc = new Scanner(System.in);

    void solve() {
        int n, m, l;
        long[][] m1, m2, m3;
        n = sc.nextInt();
        m = sc.nextInt();
        l = sc.nextInt();
        m1 = new long[n][];
        for (int i = 0; i < n; ++i) {
            m1[i] = new long[m];
            for (int j = 0; j < m; ++j) {
                m1[i][j] = sc.nextInt();
            }
        }
        m2 = new long[m][];
        for (int i = 0; i < m; ++i) {
            m2[i] = new long[l];
            for (int j = 0; j < l; ++j) {
                m2[i][j] = sc.nextInt();
            }
        }
        m3 = new long[n][];
        for (int i = 0; i < n; ++i) {
            m3[i] = new long[l];
            for (int j = 0; j < l; ++j) {
                long temp = 0;
                for (int k = 0; k < m; ++k) {
                    temp += m1[i][k] * m2[k][j];
                }
                m3[i][j] = temp;
            }
        }

        for (int i = 0; i < n; ++i) {
            for (int j = 0; j < l - 1; ++j) {
                System.out.print(m3[i][j] + " ");
            }
            System.out.println(m3[i][l - 1]);
        }

    }

}

 import java.util.Scanner; Scanner java.util import java.util.function.Function; Function java.util.function public class Main {

    public static void main(String[] args) {
        new Main().solve();
    }

    Scanner sc = new Scanner(System.in);

    void solve() {
        int n, m, l;
        long[][] m1, m2, m3;
        n = sc.nextInt();
        m = sc.nextInt();
        l = sc.nextInt();
        m1 = new long[n][];
        for (int i = 0; i < n; ++i) {
            m1[i] = new long[m];
            for (int j = 0; j < m; ++j) {
                m1[i][j] = sc.nextInt();
            }
        }
        m2 = new long[m][];
        for (int i = 0; i < m; ++i) {
            m2[i] = new long[l];
            for (int j = 0; j < l; ++j) {
                m2[i][j] = sc.nextInt();
            }
        }
        m3 = new long[n][];
        for (int i = 0; i < n; ++i) {
            m3[i] = new long[l];
            for (int j = 0; j < l; ++j) {
                long temp = 0;
                for (int k = 0; k < m; ++k) {
                    temp += m1[i][k] * m2[k][j];
                }
                m3[i][j] = temp;
            }
        }

        for (int i = 0; i < n; ++i) {
            for (int j = 0; j < l - 1; ++j) {
                System.out.print(m3[i][j] + " ");
            }
            System.out.println(m3[i][l - 1]);
        }

    }

} Main Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public static void main(String[] args) {
        new Main().solve();
    } main {
        new Main().solve();
    } new Main().solve() new Main().solve new Main() String[] args args void solve() {
        int n, m, l;
        long[][] m1, m2, m3;
        n = sc.nextInt();
        m = sc.nextInt();
        l = sc.nextInt();
        m1 = new long[n][];
        for (int i = 0; i < n; ++i) {
            m1[i] = new long[m];
            for (int j = 0; j < m; ++j) {
                m1[i][j] = sc.nextInt();
            }
        }
        m2 = new long[m][];
        for (int i = 0; i < m; ++i) {
            m2[i] = new long[l];
            for (int j = 0; j < l; ++j) {
                m2[i][j] = sc.nextInt();
            }
        }
        m3 = new long[n][];
        for (int i = 0; i < n; ++i) {
            m3[i] = new long[l];
            for (int j = 0; j < l; ++j) {
                long temp = 0;
                for (int k = 0; k < m; ++k) {
                    temp += m1[i][k] * m2[k][j];
                }
                m3[i][j] = temp;
            }
        }

        for (int i = 0; i < n; ++i) {
            for (int j = 0; j < l - 1; ++j) {
                System.out.print(m3[i][j] + " ");
            }
            System.out.println(m3[i][l - 1]);
        }

    } solve {
        int n, m, l;
        long[][] m1, m2, m3;
        n = sc.nextInt();
        m = sc.nextInt();
        l = sc.nextInt();
        m1 = new long[n][];
        for (int i = 0; i < n; ++i) {
            m1[i] = new long[m];
            for (int j = 0; j < m; ++j) {
                m1[i][j] = sc.nextInt();
            }
        }
        m2 = new long[m][];
        for (int i = 0; i < m; ++i) {
            m2[i] = new long[l];
            for (int j = 0; j < l; ++j) {
                m2[i][j] = sc.nextInt();
            }
        }
        m3 = new long[n][];
        for (int i = 0; i < n; ++i) {
            m3[i] = new long[l];
            for (int j = 0; j < l; ++j) {
                long temp = 0;
                for (int k = 0; k < m; ++k) {
                    temp += m1[i][k] * m2[k][j];
                }
                m3[i][j] = temp;
            }
        }

        for (int i = 0; i < n; ++i) {
            for (int j = 0; j < l - 1; ++j) {
                System.out.print(m3[i][j] + " ");
            }
            System.out.println(m3[i][l - 1]);
        }

    } int n n m m l; l long[][] m1 m1 m2 m2 m3; m3 n = sc.nextInt() n sc.nextInt() sc.nextInt sc m = sc.nextInt() m sc.nextInt() sc.nextInt sc l = sc.nextInt() l sc.nextInt() sc.nextInt sc m1 = new long[n][] m1 new long[n][] n for (int i = 0; i < n; ++i) {
            m1[i] = new long[m];
            for (int j = 0; j < m; ++j) {
                m1[i][j] = sc.nextInt();
            }
        } int i = 0; int i = 0; i 0 i < n i n ++i ++i i {
            m1[i] = new long[m];
            for (int j = 0; j < m; ++j) {
                m1[i][j] = sc.nextInt();
            }
        } {
            m1[i] = new long[m];
            for (int j = 0; j < m; ++j) {
                m1[i][j] = sc.nextInt();
            }
        } m1[i] = new long[m] m1[i] m1 i new long[m] m for (int j = 0; j < m; ++j) {
                m1[i][j] = sc.nextInt();
            } int j = 0; int j = 0; j 0 j < m j m ++j ++j j {
                m1[i][j] = sc.nextInt();
            } {
                m1[i][j] = sc.nextInt();
            } m1[i][j] = sc.nextInt() m1[i][j] m1[i] m1 i j sc.nextInt() sc.nextInt sc m2 = new long[m][] m2 new long[m][] m for (int i = 0; i < m; ++i) {
            m2[i] = new long[l];
            for (int j = 0; j < l; ++j) {
                m2[i][j] = sc.nextInt();
            }
        } int i = 0; int i = 0; i 0 i < m i m ++i ++i i {
            m2[i] = new long[l];
            for (int j = 0; j < l; ++j) {
                m2[i][j] = sc.nextInt();
            }
        } {
            m2[i] = new long[l];
            for (int j = 0; j < l; ++j) {
                m2[i][j] = sc.nextInt();
            }
        } m2[i] = new long[l] m2[i] m2 i new long[l] l for (int j = 0; j < l; ++j) {
                m2[i][j] = sc.nextInt();
            } int j = 0; int j = 0; j 0 j < l j l ++j ++j j {
                m2[i][j] = sc.nextInt();
            } {
                m2[i][j] = sc.nextInt();
            } m2[i][j] = sc.nextInt() m2[i][j] m2[i] m2 i j sc.nextInt() sc.nextInt sc m3 = new long[n][] m3 new long[n][] n for (int i = 0; i < n; ++i) {
            m3[i] = new long[l];
            for (int j = 0; j < l; ++j) {
                long temp = 0;
                for (int k = 0; k < m; ++k) {
                    temp += m1[i][k] * m2[k][j];
                }
                m3[i][j] = temp;
            }
        } int i = 0; int i = 0; i 0 i < n i n ++i ++i i {
            m3[i] = new long[l];
            for (int j = 0; j < l; ++j) {
                long temp = 0;
                for (int k = 0; k < m; ++k) {
                    temp += m1[i][k] * m2[k][j];
                }
                m3[i][j] = temp;
            }
        } {
            m3[i] = new long[l];
            for (int j = 0; j < l; ++j) {
                long temp = 0;
                for (int k = 0; k < m; ++k) {
                    temp += m1[i][k] * m2[k][j];
                }
                m3[i][j] = temp;
            }
        } m3[i] = new long[l] m3[i] m3 i new long[l] l for (int j = 0; j < l; ++j) {
                long temp = 0;
                for (int k = 0; k < m; ++k) {
                    temp += m1[i][k] * m2[k][j];
                }
                m3[i][j] = temp;
            } int j = 0; int j = 0; j 0 j < l j l ++j ++j j {
                long temp = 0;
                for (int k = 0; k < m; ++k) {
                    temp += m1[i][k] * m2[k][j];
                }
                m3[i][j] = temp;
            } {
                long temp = 0;
                for (int k = 0; k < m; ++k) {
                    temp += m1[i][k] * m2[k][j];
                }
                m3[i][j] = temp;
            } long temp = 0; temp 0 for (int k = 0; k < m; ++k) {
                    temp += m1[i][k] * m2[k][j];
                } int k = 0; int k = 0; k 0 k < m k m ++k ++k k {
                    temp += m1[i][k] * m2[k][j];
                } {
                    temp += m1[i][k] * m2[k][j];
                } temp += m1[i][k] * m2[k][j] temp m1[i][k] * m2[k][j] m1[i][k] m1[i] m1 i k m2[k][j] m2[k] m2 k j m3[i][j] = temp m3[i][j] m3[i] m3 i j temp for (int i = 0; i < n; ++i) {
            for (int j = 0; j < l - 1; ++j) {
                System.out.print(m3[i][j] + " ");
            }
            System.out.println(m3[i][l - 1]);
        } int i = 0; int i = 0; i 0 i < n i n ++i ++i i {
            for (int j = 0; j < l - 1; ++j) {
                System.out.print(m3[i][j] + " ");
            }
            System.out.println(m3[i][l - 1]);
        } {
            for (int j = 0; j < l - 1; ++j) {
                System.out.print(m3[i][j] + " ");
            }
            System.out.println(m3[i][l - 1]);
        } for (int j = 0; j < l - 1; ++j) {
                System.out.print(m3[i][j] + " ");
            } int j = 0; int j = 0; j 0 j < l - 1 j l - 1 l 1 ++j ++j j {
                System.out.print(m3[i][j] + " ");
            } {
                System.out.print(m3[i][j] + " ");
            } System.out.print(m3[i][j] + " ") System.out.print System.out System System.out m3[i][j] + " " m3[i][j] m3[i] m3 i j " " System.out.println(m3[i][l - 1]) System.out.println System.out System System.out m3[i][l - 1] m3[i] m3 i l - 1 l 1 public class Main {

    public static void main(String[] args) {
        new Main().solve();
    }

    Scanner sc = new Scanner(System.in);

    void solve() {
        int n, m, l;
        long[][] m1, m2, m3;
        n = sc.nextInt();
        m = sc.nextInt();
        l = sc.nextInt();
        m1 = new long[n][];
        for (int i = 0; i < n; ++i) {
            m1[i] = new long[m];
            for (int j = 0; j < m; ++j) {
                m1[i][j] = sc.nextInt();
            }
        }
        m2 = new long[m][];
        for (int i = 0; i < m; ++i) {
            m2[i] = new long[l];
            for (int j = 0; j < l; ++j) {
                m2[i][j] = sc.nextInt();
            }
        }
        m3 = new long[n][];
        for (int i = 0; i < n; ++i) {
            m3[i] = new long[l];
            for (int j = 0; j < l; ++j) {
                long temp = 0;
                for (int k = 0; k < m; ++k) {
                    temp += m1[i][k] * m2[k][j];
                }
                m3[i][j] = temp;
            }
        }

        for (int i = 0; i < n; ++i) {
            for (int j = 0; j < l - 1; ++j) {
                System.out.print(m3[i][j] + " ");
            }
            System.out.println(m3[i][l - 1]);
        }

    }

} public class Main {

    public static void main(String[] args) {
        new Main().solve();
    }

    Scanner sc = new Scanner(System.in);

    void solve() {
        int n, m, l;
        long[][] m1, m2, m3;
        n = sc.nextInt();
        m = sc.nextInt();
        l = sc.nextInt();
        m1 = new long[n][];
        for (int i = 0; i < n; ++i) {
            m1[i] = new long[m];
            for (int j = 0; j < m; ++j) {
                m1[i][j] = sc.nextInt();
            }
        }
        m2 = new long[m][];
        for (int i = 0; i < m; ++i) {
            m2[i] = new long[l];
            for (int j = 0; j < l; ++j) {
                m2[i][j] = sc.nextInt();
            }
        }
        m3 = new long[n][];
        for (int i = 0; i < n; ++i) {
            m3[i] = new long[l];
            for (int j = 0; j < l; ++j) {
                long temp = 0;
                for (int k = 0; k < m; ++k) {
                    temp += m1[i][k] * m2[k][j];
                }
                m3[i][j] = temp;
            }
        }

        for (int i = 0; i < n; ++i) {
            for (int j = 0; j < l - 1; ++j) {
                System.out.print(m3[i][j] + " ");
            }
            System.out.println(m3[i][l - 1]);
        }

    }

} Main
import java.util.Scanner;
import java.util.function.Function;

public class Main {

    public static void main(String[] args) {
        new Main().solve();
    }

    Scanner sc = new Scanner(System.in);

    void solve() {
        int n, m, l;
        long[][] m1, m2, m3;
        n = sc.nextInt();
        m = sc.nextInt();
        l = sc.nextInt();
        m1 = new long[n][];
        for (int i = 0; i < n; ++i) {
            m1[i] = new long[m];
            for (int j = 0; j < m; ++j) {
                m1[i][j] = sc.nextInt();
            }
        }
        m2 = new long[m][];
        for (int i = 0; i < m; ++i) {
            m2[i] = new long[l];
            for (int j = 0; j < l; ++j) {
                m2[i][j] = sc.nextInt();
            }
        }
        m3 = new long[n][];
        for (int i = 0; i < n; ++i) {
            m3[i] = new long[l];
            for (int j = 0; j < l; ++j) {
                long temp = 0;
                for (int k = 0; k < m; ++k) {
                    temp += m1[i][k] * m2[k][j];
                }
                m3[i][j] = temp;
            }
        }

        for (int i = 0; i < n; ++i) {
            for (int j = 0; j < l - 1; ++j) {
                System.out.print(m3[i][j] + " ");
            }
            System.out.println(m3[i][l - 1]);
        }

    }

}


