import java.util.*;

public class Main {
    private static final Scanner scn = new Scanner(System.in);
    
    public static void main(String[] args) {
        int n = scn.nextInt(), m  = scn.nextInt(), l = scn.nextInt();
        showMatrix(createTable(n, m), createTable(m, l));
    }
    
    private static int[][] createTable(int y, int x) {
        int[][] tbl = new int[y][x];
        for(int i = 0; i < y; i++) {
            for(int j = 0; j < x; j++) {
                tbl[i][j] = scn.nextInt();
            }
        }
        return tbl;
    }
    
    private static void showMatrix(int[][] a, int[][] b) {
        for(int i = 0; i < a.length; i++) {
            StringBuilder sb = new StringBuilder();
            for(int j = 0; j < b[0].length; j++) {
                long v = 0;
                for(int k = 0; k < b.length; k++) {
                    v += a[i][k] * b[k][j];
                }
                sb.append(v + " ");
            }
            System.out.println(sb.toString().trim());
        }
    }
}
/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