import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int l = sc.nextInt();
        int a[][] = new int[n][m];
        int b[][] = new int[m][l];
        long ans[][] = new long[n][l];
        int i=0,j=0,k=0;
        for(i = 0 ; i < n ; i++)
        {
            for(j = 0 ; j < m ; j++)
                a[i][j] = sc.nextInt();
        }
        for(i = 0 ; i < m ; i++)
        {
            for(j = 0 ; j < l ; j++)
                b[i][j] = sc.nextInt();
        }
        for(i = 0 ; i < n ; i++)
        {
            for(j = 0 ; j < l ; j++)
                ans[i][j] = 0;
        }
        for(i = 0 ; i < n ; i++)
        {
            for(j = 0 ; j < l ; j++)
            {
                for(k = 0 ; k < m ; k++)
                    ans[i][j] += a[i][k] * b[k][j];
            }
        }
        for(i = 0 ; i < n ; i++)
        {
            for(j = 0 ; j < l-1 ; j++)
                System.out.print(ans[i][j] + " ");
            System.out.println(ans[i][l-1]);
        }
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int l = sc.nextInt();
        int a[][] = new int[n][m];
        int b[][] = new int[m][l];
        long ans[][] = new long[n][l];
        int i=0,j=0,k=0;
        for(i = 0 ; i < n ; i++)
        {
            for(j = 0 ; j < m ; j++)
                a[i][j] = sc.nextInt();
        }
        for(i = 0 ; i < m ; i++)
        {
            for(j = 0 ; j < l ; j++)
                b[i][j] = sc.nextInt();
        }
        for(i = 0 ; i < n ; i++)
        {
            for(j = 0 ; j < l ; j++)
                ans[i][j] = 0;
        }
        for(i = 0 ; i < n ; i++)
        {
            for(j = 0 ; j < l ; j++)
            {
                for(k = 0 ; k < m ; k++)
                    ans[i][j] += a[i][k] * b[k][j];
            }
        }
        for(i = 0 ; i < n ; i++)
        {
            for(j = 0 ; j < l-1 ; j++)
                System.out.print(ans[i][j] + " ");
            System.out.println(ans[i][l-1]);
        }
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int l = sc.nextInt();
        int a[][] = new int[n][m];
        int b[][] = new int[m][l];
        long ans[][] = new long[n][l];
        int i=0,j=0,k=0;
        for(i = 0 ; i < n ; i++)
        {
            for(j = 0 ; j < m ; j++)
                a[i][j] = sc.nextInt();
        }
        for(i = 0 ; i < m ; i++)
        {
            for(j = 0 ; j < l ; j++)
                b[i][j] = sc.nextInt();
        }
        for(i = 0 ; i < n ; i++)
        {
            for(j = 0 ; j < l ; j++)
                ans[i][j] = 0;
        }
        for(i = 0 ; i < n ; i++)
        {
            for(j = 0 ; j < l ; j++)
            {
                for(k = 0 ; k < m ; k++)
                    ans[i][j] += a[i][k] * b[k][j];
            }
        }
        for(i = 0 ; i < n ; i++)
        {
            for(j = 0 ; j < l-1 ; j++)
                System.out.print(ans[i][j] + " ");
            System.out.println(ans[i][l-1]);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int l = sc.nextInt();
        int a[][] = new int[n][m];
        int b[][] = new int[m][l];
        long ans[][] = new long[n][l];
        int i=0,j=0,k=0;
        for(i = 0 ; i < n ; i++)
        {
            for(j = 0 ; j < m ; j++)
                a[i][j] = sc.nextInt();
        }
        for(i = 0 ; i < m ; i++)
        {
            for(j = 0 ; j < l ; j++)
                b[i][j] = sc.nextInt();
        }
        for(i = 0 ; i < n ; i++)
        {
            for(j = 0 ; j < l ; j++)
                ans[i][j] = 0;
        }
        for(i = 0 ; i < n ; i++)
        {
            for(j = 0 ; j < l ; j++)
            {
                for(k = 0 ; k < m ; k++)
                    ans[i][j] += a[i][k] * b[k][j];
            }
        }
        for(i = 0 ; i < n ; i++)
        {
            for(j = 0 ; j < l-1 ; j++)
                System.out.print(ans[i][j] + " ");
            System.out.println(ans[i][l-1]);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int m = sc.nextInt(); m sc.nextInt() sc.nextInt sc int l = sc.nextInt(); l sc.nextInt() sc.nextInt sc 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 long ans[][] = new long[n][l]; ans new long[n][l] n l int i=0 i 0 j=0 j 0 k=0; k 0 for(i = 0 ; i < n ; i++)
        {
            for(j = 0 ; j < m ; j++)
                a[i][j] = sc.nextInt();
        } i = 0 ; i = 0 i 0 i < n i n i++ i++ i {
            for(j = 0 ; j < m ; j++)
                a[i][j] = sc.nextInt();
        } {
            for(j = 0 ; j < m ; j++)
                a[i][j] = sc.nextInt();
        } for(j = 0 ; j < m ; j++)
                a[i][j] = sc.nextInt(); j = 0 ; j = 0 j 0 j < m j m j++ j++ j a[i][j] = sc.nextInt(); a[i][j] = sc.nextInt() a[i][j] a[i] a i j sc.nextInt() sc.nextInt sc for(i = 0 ; i < m ; i++)
        {
            for(j = 0 ; j < l ; j++)
                b[i][j] = sc.nextInt();
        } i = 0 ; i = 0 i 0 i < m i m i++ i++ i {
            for(j = 0 ; j < l ; j++)
                b[i][j] = sc.nextInt();
        } {
            for(j = 0 ; j < l ; j++)
                b[i][j] = sc.nextInt();
        } for(j = 0 ; j < l ; j++)
                b[i][j] = sc.nextInt(); j = 0 ; j = 0 j 0 j < l j l j++ j++ j b[i][j] = sc.nextInt(); b[i][j] = sc.nextInt() b[i][j] b[i] b i j sc.nextInt() sc.nextInt sc for(i = 0 ; i < n ; i++)
        {
            for(j = 0 ; j < l ; j++)
                ans[i][j] = 0;
        } i = 0 ; i = 0 i 0 i < n i n i++ i++ i {
            for(j = 0 ; j < l ; j++)
                ans[i][j] = 0;
        } {
            for(j = 0 ; j < l ; j++)
                ans[i][j] = 0;
        } for(j = 0 ; j < l ; j++)
                ans[i][j] = 0; j = 0 ; j = 0 j 0 j < l j l j++ j++ j ans[i][j] = 0; ans[i][j] = 0 ans[i][j] ans[i] ans i j 0 for(i = 0 ; i < n ; i++)
        {
            for(j = 0 ; j < l ; j++)
            {
                for(k = 0 ; k < m ; k++)
                    ans[i][j] += a[i][k] * b[k][j];
            }
        } i = 0 ; i = 0 i 0 i < n i n i++ i++ i {
            for(j = 0 ; j < l ; j++)
            {
                for(k = 0 ; k < m ; k++)
                    ans[i][j] += a[i][k] * b[k][j];
            }
        } {
            for(j = 0 ; j < l ; j++)
            {
                for(k = 0 ; k < m ; k++)
                    ans[i][j] += a[i][k] * b[k][j];
            }
        } for(j = 0 ; j < l ; j++)
            {
                for(k = 0 ; k < m ; k++)
                    ans[i][j] += a[i][k] * b[k][j];
            } j = 0 ; j = 0 j 0 j < l j l j++ j++ j {
                for(k = 0 ; k < m ; k++)
                    ans[i][j] += a[i][k] * b[k][j];
            } {
                for(k = 0 ; k < m ; k++)
                    ans[i][j] += a[i][k] * b[k][j];
            } for(k = 0 ; k < m ; k++)
                    ans[i][j] += a[i][k] * b[k][j]; k = 0 ; k = 0 k 0 k < m k m k++ k++ k ans[i][j] += a[i][k] * b[k][j]; ans[i][j] += a[i][k] * b[k][j] ans[i][j] ans[i] ans i j a[i][k] * b[k][j] a[i][k] a[i] a i k b[k][j] b[k] b k j for(i = 0 ; i < n ; i++)
        {
            for(j = 0 ; j < l-1 ; j++)
                System.out.print(ans[i][j] + " ");
            System.out.println(ans[i][l-1]);
        } i = 0 ; i = 0 i 0 i < n i n i++ i++ i {
            for(j = 0 ; j < l-1 ; j++)
                System.out.print(ans[i][j] + " ");
            System.out.println(ans[i][l-1]);
        } {
            for(j = 0 ; j < l-1 ; j++)
                System.out.print(ans[i][j] + " ");
            System.out.println(ans[i][l-1]);
        } for(j = 0 ; j < l-1 ; j++)
                System.out.print(ans[i][j] + " "); j = 0 ; j = 0 j 0 j < l-1 j l-1 l 1 j++ j++ j System.out.print(ans[i][j] + " "); System.out.print(ans[i][j] + " ") System.out.print System.out System System.out ans[i][j] + " " ans[i][j] ans[i] ans i j " " System.out.println(ans[i][l-1]) System.out.println System.out System System.out ans[i][l-1] ans[i] ans i l-1 l 1 String[] args args public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int l = sc.nextInt();
        int a[][] = new int[n][m];
        int b[][] = new int[m][l];
        long ans[][] = new long[n][l];
        int i=0,j=0,k=0;
        for(i = 0 ; i < n ; i++)
        {
            for(j = 0 ; j < m ; j++)
                a[i][j] = sc.nextInt();
        }
        for(i = 0 ; i < m ; i++)
        {
            for(j = 0 ; j < l ; j++)
                b[i][j] = sc.nextInt();
        }
        for(i = 0 ; i < n ; i++)
        {
            for(j = 0 ; j < l ; j++)
                ans[i][j] = 0;
        }
        for(i = 0 ; i < n ; i++)
        {
            for(j = 0 ; j < l ; j++)
            {
                for(k = 0 ; k < m ; k++)
                    ans[i][j] += a[i][k] * b[k][j];
            }
        }
        for(i = 0 ; i < n ; i++)
        {
            for(j = 0 ; j < l-1 ; j++)
                System.out.print(ans[i][j] + " ");
            System.out.println(ans[i][l-1]);
        }
    }
} public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int l = sc.nextInt();
        int a[][] = new int[n][m];
        int b[][] = new int[m][l];
        long ans[][] = new long[n][l];
        int i=0,j=0,k=0;
        for(i = 0 ; i < n ; i++)
        {
            for(j = 0 ; j < m ; j++)
                a[i][j] = sc.nextInt();
        }
        for(i = 0 ; i < m ; i++)
        {
            for(j = 0 ; j < l ; j++)
                b[i][j] = sc.nextInt();
        }
        for(i = 0 ; i < n ; i++)
        {
            for(j = 0 ; j < l ; j++)
                ans[i][j] = 0;
        }
        for(i = 0 ; i < n ; i++)
        {
            for(j = 0 ; j < l ; j++)
            {
                for(k = 0 ; k < m ; k++)
                    ans[i][j] += a[i][k] * b[k][j];
            }
        }
        for(i = 0 ; i < n ; i++)
        {
            for(j = 0 ; j < l-1 ; j++)
                System.out.print(ans[i][j] + " ");
            System.out.println(ans[i][l-1]);
        }
    }
} Main
import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int l = sc.nextInt();
        int a[][] = new int[n][m];
        int b[][] = new int[m][l];
        long ans[][] = new long[n][l];
        int i=0,j=0,k=0;
        for(i = 0 ; i < n ; i++)
        {
            for(j = 0 ; j < m ; j++)
                a[i][j] = sc.nextInt();
        }
        for(i = 0 ; i < m ; i++)
        {
            for(j = 0 ; j < l ; j++)
                b[i][j] = sc.nextInt();
        }
        for(i = 0 ; i < n ; i++)
        {
            for(j = 0 ; j < l ; j++)
                ans[i][j] = 0;
        }
        for(i = 0 ; i < n ; i++)
        {
            for(j = 0 ; j < l ; j++)
            {
                for(k = 0 ; k < m ; k++)
                    ans[i][j] += a[i][k] * b[k][j];
            }
        }
        for(i = 0 ; i < n ; i++)
        {
            for(j = 0 ; j < l-1 ; j++)
                System.out.print(ans[i][j] + " ");
            System.out.println(ans[i][l-1]);
        }
    }
}
