import java.util.*;
import java.io.*;

public class Main{
    public static void main(String args[]){
        Scanner in = new Scanner(System.in);

        int n = in.nextInt(),  m = in.nextInt(), l = in.nextInt();
        int[][] m1 = new int[n][m], m2 = new int[m][l], m3 = new int[n][l];
        for(int i = 0; i<n;i++){
            for(int j = 0; j<m;j++) m1[i][j]= in.nextInt();
        }

        for(int i = 0; i<m;i++){
            for(int j = 0; j<l;j++) m2[i][j]= in.nextInt();
        }

        for(int i = 0; i<n;i++){
            for(int j = 0; j<l;j++){
                long sum = 0;
                for(int k = 0; k < m; k++)sum += m1[i][k] * m2[k][j];
                System.out.printf("%d%s", sum, (j==l-1) ? "\n":" ");
            }
        }


    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main{
    public static void main(String args[]){
        Scanner in = new Scanner(System.in);

        int n = in.nextInt(),  m = in.nextInt(), l = in.nextInt();
        int[][] m1 = new int[n][m], m2 = new int[m][l], m3 = new int[n][l];
        for(int i = 0; i<n;i++){
            for(int j = 0; j<m;j++) m1[i][j]= in.nextInt();
        }

        for(int i = 0; i<m;i++){
            for(int j = 0; j<l;j++) m2[i][j]= in.nextInt();
        }

        for(int i = 0; i<n;i++){
            for(int j = 0; j<l;j++){
                long sum = 0;
                for(int k = 0; k < m; k++)sum += m1[i][k] * m2[k][j];
                System.out.printf("%d%s", sum, (j==l-1) ? "\n":" ");
            }
        }


    }
} Main public static void main(String args[]){
        Scanner in = new Scanner(System.in);

        int n = in.nextInt(),  m = in.nextInt(), l = in.nextInt();
        int[][] m1 = new int[n][m], m2 = new int[m][l], m3 = new int[n][l];
        for(int i = 0; i<n;i++){
            for(int j = 0; j<m;j++) m1[i][j]= in.nextInt();
        }

        for(int i = 0; i<m;i++){
            for(int j = 0; j<l;j++) m2[i][j]= in.nextInt();
        }

        for(int i = 0; i<n;i++){
            for(int j = 0; j<l;j++){
                long sum = 0;
                for(int k = 0; k < m; k++)sum += m1[i][k] * m2[k][j];
                System.out.printf("%d%s", sum, (j==l-1) ? "\n":" ");
            }
        }


    } main {
        Scanner in = new Scanner(System.in);

        int n = in.nextInt(),  m = in.nextInt(), l = in.nextInt();
        int[][] m1 = new int[n][m], m2 = new int[m][l], m3 = new int[n][l];
        for(int i = 0; i<n;i++){
            for(int j = 0; j<m;j++) m1[i][j]= in.nextInt();
        }

        for(int i = 0; i<m;i++){
            for(int j = 0; j<l;j++) m2[i][j]= in.nextInt();
        }

        for(int i = 0; i<n;i++){
            for(int j = 0; j<l;j++){
                long sum = 0;
                for(int k = 0; k < m; k++)sum += m1[i][k] * m2[k][j];
                System.out.printf("%d%s", sum, (j==l-1) ? "\n":" ");
            }
        }


    } Scanner in = new Scanner(System.in); in new Scanner(System.in) int n = in.nextInt() n in.nextInt() in.nextInt in m = in.nextInt() m in.nextInt() in.nextInt in l = in.nextInt(); l in.nextInt() in.nextInt in int[][] m1 = new int[n][m] m1 new int[n][m] n m m2 = new int[m][l] m2 new int[m][l] m l m3 = new int[n][l]; m3 new int[n][l] n l for(int i = 0; i<n;i++){
            for(int j = 0; j<m;j++) m1[i][j]= in.nextInt();
        } int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
            for(int j = 0; j<m;j++) m1[i][j]= in.nextInt();
        } {
            for(int j = 0; j<m;j++) m1[i][j]= in.nextInt();
        } for(int j = 0; j<m;j++) m1[i][j]= in.nextInt(); int j = 0; int j = 0; j 0 j<m j m j++ j++ j m1[i][j]= in.nextInt(); m1[i][j]= in.nextInt() m1[i][j] m1[i] m1 i j in.nextInt() in.nextInt in for(int i = 0; i<m;i++){
            for(int j = 0; j<l;j++) m2[i][j]= in.nextInt();
        } int i = 0; int i = 0; i 0 i<m i m i++ i++ i {
            for(int j = 0; j<l;j++) m2[i][j]= in.nextInt();
        } {
            for(int j = 0; j<l;j++) m2[i][j]= in.nextInt();
        } for(int j = 0; j<l;j++) m2[i][j]= in.nextInt(); int j = 0; int j = 0; j 0 j<l j l j++ j++ j m2[i][j]= in.nextInt(); m2[i][j]= in.nextInt() m2[i][j] m2[i] m2 i j in.nextInt() in.nextInt in for(int i = 0; i<n;i++){
            for(int j = 0; j<l;j++){
                long sum = 0;
                for(int k = 0; k < m; k++)sum += m1[i][k] * m2[k][j];
                System.out.printf("%d%s", sum, (j==l-1) ? "\n":" ");
            }
        } int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
            for(int j = 0; j<l;j++){
                long sum = 0;
                for(int k = 0; k < m; k++)sum += m1[i][k] * m2[k][j];
                System.out.printf("%d%s", sum, (j==l-1) ? "\n":" ");
            }
        } {
            for(int j = 0; j<l;j++){
                long sum = 0;
                for(int k = 0; k < m; k++)sum += m1[i][k] * m2[k][j];
                System.out.printf("%d%s", sum, (j==l-1) ? "\n":" ");
            }
        } for(int j = 0; j<l;j++){
                long sum = 0;
                for(int k = 0; k < m; k++)sum += m1[i][k] * m2[k][j];
                System.out.printf("%d%s", sum, (j==l-1) ? "\n":" ");
            } int j = 0; int j = 0; j 0 j<l j l j++ j++ j {
                long sum = 0;
                for(int k = 0; k < m; k++)sum += m1[i][k] * m2[k][j];
                System.out.printf("%d%s", sum, (j==l-1) ? "\n":" ");
            } {
                long sum = 0;
                for(int k = 0; k < m; k++)sum += m1[i][k] * m2[k][j];
                System.out.printf("%d%s", sum, (j==l-1) ? "\n":" ");
            } long sum = 0; sum 0 for(int k = 0; k < m; k++)sum += m1[i][k] * m2[k][j]; int k = 0; int k = 0; k 0 k < m k m k++ k++ k sum += m1[i][k] * m2[k][j]; sum += m1[i][k] * m2[k][j] sum m1[i][k] * m2[k][j] m1[i][k] m1[i] m1 i k m2[k][j] m2[k] m2 k j System.out.printf("%d%s", sum, (j==l-1) ? "\n":" ") System.out.printf System.out System System.out "%d%s" sum (j==l-1) ? "\n":" " (j==l-1) j l-1 l 1 "\n" " " String args[] args public class Main{
    public static void main(String args[]){
        Scanner in = new Scanner(System.in);

        int n = in.nextInt(),  m = in.nextInt(), l = in.nextInt();
        int[][] m1 = new int[n][m], m2 = new int[m][l], m3 = new int[n][l];
        for(int i = 0; i<n;i++){
            for(int j = 0; j<m;j++) m1[i][j]= in.nextInt();
        }

        for(int i = 0; i<m;i++){
            for(int j = 0; j<l;j++) m2[i][j]= in.nextInt();
        }

        for(int i = 0; i<n;i++){
            for(int j = 0; j<l;j++){
                long sum = 0;
                for(int k = 0; k < m; k++)sum += m1[i][k] * m2[k][j];
                System.out.printf("%d%s", sum, (j==l-1) ? "\n":" ");
            }
        }


    }
} public class Main{
    public static void main(String args[]){
        Scanner in = new Scanner(System.in);

        int n = in.nextInt(),  m = in.nextInt(), l = in.nextInt();
        int[][] m1 = new int[n][m], m2 = new int[m][l], m3 = new int[n][l];
        for(int i = 0; i<n;i++){
            for(int j = 0; j<m;j++) m1[i][j]= in.nextInt();
        }

        for(int i = 0; i<m;i++){
            for(int j = 0; j<l;j++) m2[i][j]= in.nextInt();
        }

        for(int i = 0; i<n;i++){
            for(int j = 0; j<l;j++){
                long sum = 0;
                for(int k = 0; k < m; k++)sum += m1[i][k] * m2[k][j];
                System.out.printf("%d%s", sum, (j==l-1) ? "\n":" ");
            }
        }


    }
} Main
import java.util.*;
import java.io.*;

public class Main{
    public static void main(String args[]){
        Scanner in = new Scanner(System.in);

        int n = in.nextInt(),  m = in.nextInt(), l = in.nextInt();
        int[][] m1 = new int[n][m], m2 = new int[m][l], m3 = new int[n][l];
        for(int i = 0; i<n;i++){
            for(int j = 0; j<m;j++) m1[i][j]= in.nextInt();
        }

        for(int i = 0; i<m;i++){
            for(int j = 0; j<l;j++) m2[i][j]= in.nextInt();
        }

        for(int i = 0; i<n;i++){
            for(int j = 0; j<l;j++){
                long sum = 0;
                for(int k = 0; k < m; k++)sum += m1[i][k] * m2[k][j];
                System.out.printf("%d%s", sum, (j==l-1) ? "\n":" ");
            }
        }


    }
}
