import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        int i, j, k;
        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  c[][] = new long[n][l];
        
        for(i = 0; i < n; i++){
            for(j = 0; j < m; j++){
                a[i][j] = sc.nextInt();
            }
        }
        for(j = 0; j < m; j++){
            for(k = 0; k < l; k++){
                b[j][k] = sc.nextInt();
            }
        }
        
        for(i = 0; i < n; i++){
            for(j = 0; j < m; j++){
                for(k = 0; k < l; k++){
                    c[i][k] += a[i][j] * b[j][k];
                }
            }
        }
        for(i = 0; i < n; i++){
            for(k = 0; k < l; k++){
                System.out.printf("%d", c[i][k]);
                if(k == l - 1) break;
                System.out.printf(" ");
            }
            System.out.println();
        }
        sc.close();
    }
}
 import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        int i, j, k;
        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  c[][] = new long[n][l];
        
        for(i = 0; i < n; i++){
            for(j = 0; j < m; j++){
                a[i][j] = sc.nextInt();
            }
        }
        for(j = 0; j < m; j++){
            for(k = 0; k < l; k++){
                b[j][k] = sc.nextInt();
            }
        }
        
        for(i = 0; i < n; i++){
            for(j = 0; j < m; j++){
                for(k = 0; k < l; k++){
                    c[i][k] += a[i][j] * b[j][k];
                }
            }
        }
        for(i = 0; i < n; i++){
            for(k = 0; k < l; k++){
                System.out.printf("%d", c[i][k]);
                if(k == l - 1) break;
                System.out.printf(" ");
            }
            System.out.println();
        }
        sc.close();
    }
} Main public static void main(String[] args) throws Exception {
        int i, j, k;
        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  c[][] = new long[n][l];
        
        for(i = 0; i < n; i++){
            for(j = 0; j < m; j++){
                a[i][j] = sc.nextInt();
            }
        }
        for(j = 0; j < m; j++){
            for(k = 0; k < l; k++){
                b[j][k] = sc.nextInt();
            }
        }
        
        for(i = 0; i < n; i++){
            for(j = 0; j < m; j++){
                for(k = 0; k < l; k++){
                    c[i][k] += a[i][j] * b[j][k];
                }
            }
        }
        for(i = 0; i < n; i++){
            for(k = 0; k < l; k++){
                System.out.printf("%d", c[i][k]);
                if(k == l - 1) break;
                System.out.printf(" ");
            }
            System.out.println();
        }
        sc.close();
    } main {
        int i, j, k;
        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  c[][] = new long[n][l];
        
        for(i = 0; i < n; i++){
            for(j = 0; j < m; j++){
                a[i][j] = sc.nextInt();
            }
        }
        for(j = 0; j < m; j++){
            for(k = 0; k < l; k++){
                b[j][k] = sc.nextInt();
            }
        }
        
        for(i = 0; i < n; i++){
            for(j = 0; j < m; j++){
                for(k = 0; k < l; k++){
                    c[i][k] += a[i][j] * b[j][k];
                }
            }
        }
        for(i = 0; i < n; i++){
            for(k = 0; k < l; k++){
                System.out.printf("%d", c[i][k]);
                if(k == l - 1) break;
                System.out.printf(" ");
            }
            System.out.println();
        }
        sc.close();
    } int i i j j k; k 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  c[][] = new long[n][l]; c new long[n][l] n l 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] = sc.nextInt() a[i][j] a[i] a i j sc.nextInt() sc.nextInt sc for(j = 0; j < m; j++){
            for(k = 0; k < l; k++){
                b[j][k] = sc.nextInt();
            }
        } j = 0; j = 0 j 0 j < m j m j++ j++ j {
            for(k = 0; k < l; k++){
                b[j][k] = sc.nextInt();
            }
        } {
            for(k = 0; k < l; k++){
                b[j][k] = sc.nextInt();
            }
        } for(k = 0; k < l; k++){
                b[j][k] = sc.nextInt();
            } k = 0; k = 0 k 0 k < l k l k++ k++ k {
                b[j][k] = sc.nextInt();
            } {
                b[j][k] = sc.nextInt();
            } b[j][k] = sc.nextInt() b[j][k] b[j] b j k sc.nextInt() sc.nextInt sc for(i = 0; i < n; i++){
            for(j = 0; j < m; j++){
                for(k = 0; k < l; k++){
                    c[i][k] += a[i][j] * b[j][k];
                }
            }
        } i = 0; i = 0 i 0 i < n i n i++ i++ i {
            for(j = 0; j < m; j++){
                for(k = 0; k < l; k++){
                    c[i][k] += a[i][j] * b[j][k];
                }
            }
        } {
            for(j = 0; j < m; j++){
                for(k = 0; k < l; k++){
                    c[i][k] += a[i][j] * b[j][k];
                }
            }
        } for(j = 0; j < m; j++){
                for(k = 0; k < l; k++){
                    c[i][k] += a[i][j] * b[j][k];
                }
            } j = 0; j = 0 j 0 j < m j m j++ j++ j {
                for(k = 0; k < l; k++){
                    c[i][k] += a[i][j] * b[j][k];
                }
            } {
                for(k = 0; k < l; k++){
                    c[i][k] += a[i][j] * b[j][k];
                }
            } for(k = 0; k < l; k++){
                    c[i][k] += a[i][j] * b[j][k];
                } k = 0; k = 0 k 0 k < l k l k++ k++ k {
                    c[i][k] += a[i][j] * b[j][k];
                } {
                    c[i][k] += a[i][j] * b[j][k];
                } c[i][k] += a[i][j] * b[j][k] c[i][k] c[i] c i k a[i][j] * b[j][k] a[i][j] a[i] a i j b[j][k] b[j] b j k for(i = 0; i < n; i++){
            for(k = 0; k < l; k++){
                System.out.printf("%d", c[i][k]);
                if(k == l - 1) break;
                System.out.printf(" ");
            }
            System.out.println();
        } i = 0; i = 0 i 0 i < n i n i++ i++ i {
            for(k = 0; k < l; k++){
                System.out.printf("%d", c[i][k]);
                if(k == l - 1) break;
                System.out.printf(" ");
            }
            System.out.println();
        } {
            for(k = 0; k < l; k++){
                System.out.printf("%d", c[i][k]);
                if(k == l - 1) break;
                System.out.printf(" ");
            }
            System.out.println();
        } for(k = 0; k < l; k++){
                System.out.printf("%d", c[i][k]);
                if(k == l - 1) break;
                System.out.printf(" ");
            } k = 0; k = 0 k 0 k < l k l k++ k++ k {
                System.out.printf("%d", c[i][k]);
                if(k == l - 1) break;
                System.out.printf(" ");
            } {
                System.out.printf("%d", c[i][k]);
                if(k == l - 1) break;
                System.out.printf(" ");
            } System.out.printf("%d", c[i][k]) System.out.printf System.out System System.out "%d" c[i][k] c[i] c i k if(k == l - 1) break; k == l - 1 k l - 1 l 1 break; System.out.printf(" ") System.out.printf System.out System System.out " " System.out.println() System.out.println System.out System System.out sc.close() sc.close sc String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        int i, j, k;
        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  c[][] = new long[n][l];
        
        for(i = 0; i < n; i++){
            for(j = 0; j < m; j++){
                a[i][j] = sc.nextInt();
            }
        }
        for(j = 0; j < m; j++){
            for(k = 0; k < l; k++){
                b[j][k] = sc.nextInt();
            }
        }
        
        for(i = 0; i < n; i++){
            for(j = 0; j < m; j++){
                for(k = 0; k < l; k++){
                    c[i][k] += a[i][j] * b[j][k];
                }
            }
        }
        for(i = 0; i < n; i++){
            for(k = 0; k < l; k++){
                System.out.printf("%d", c[i][k]);
                if(k == l - 1) break;
                System.out.printf(" ");
            }
            System.out.println();
        }
        sc.close();
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        int i, j, k;
        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  c[][] = new long[n][l];
        
        for(i = 0; i < n; i++){
            for(j = 0; j < m; j++){
                a[i][j] = sc.nextInt();
            }
        }
        for(j = 0; j < m; j++){
            for(k = 0; k < l; k++){
                b[j][k] = sc.nextInt();
            }
        }
        
        for(i = 0; i < n; i++){
            for(j = 0; j < m; j++){
                for(k = 0; k < l; k++){
                    c[i][k] += a[i][j] * b[j][k];
                }
            }
        }
        for(i = 0; i < n; i++){
            for(k = 0; k < l; k++){
                System.out.printf("%d", c[i][k]);
                if(k == l - 1) break;
                System.out.printf(" ");
            }
            System.out.println();
        }
        sc.close();
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        int i, j, k;
        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  c[][] = new long[n][l];
        
        for(i = 0; i < n; i++){
            for(j = 0; j < m; j++){
                a[i][j] = sc.nextInt();
            }
        }
        for(j = 0; j < m; j++){
            for(k = 0; k < l; k++){
                b[j][k] = sc.nextInt();
            }
        }
        
        for(i = 0; i < n; i++){
            for(j = 0; j < m; j++){
                for(k = 0; k < l; k++){
                    c[i][k] += a[i][j] * b[j][k];
                }
            }
        }
        for(i = 0; i < n; i++){
            for(k = 0; k < l; k++){
                System.out.printf("%d", c[i][k]);
                if(k == l - 1) break;
                System.out.printf(" ");
            }
            System.out.println();
        }
        sc.close();
    }
}

