import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String str;
        int i,j,k,a,b,c;
        long x[][];
        long y[][];
        long z[][];
        str = scan.nextLine();
        String[] num = str.split(" ", 0);
        a = Integer.valueOf(num[0]);
        b = Integer.valueOf(num[1]);
        c = Integer.valueOf(num[2]);
        x = new long[a][b];
        y = new long[b][c];
        z = new long[a][c];
       for(i=0;i<a;i++){
           str = scan.nextLine();
           num = str.split(" ", 0);
           for(j=0;j<b;j++){
               x[i][j] = Integer.valueOf(num[j]);
           }
       }
        for(i=0;i<b;i++){
            str = scan.nextLine();
            num = str.split(" ", 0);
            for(j=0;j<c;j++){
                y[i][j] = Integer.valueOf(num[j]);
            }
        }
        for(i=0;i<a;i++){
            for(j=0;j<c;j++){
                for(k =0;k<b;k++){
                    z[i][j] += x[i][k] * y[k][j];   
                }
            }
        }
        for(i=0;i<a;i++){
            for(j=0;j<c-1;j++){
                System.out.print(z[i][j]+" ");
            }
            System.out.println(z[i][j]);
        }


        scan.close();
    }

}



/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz