import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int m = scan.nextInt();
        int n = scan.nextInt();
        int l = scan.nextInt();
        int[][] data = new int[m][n];
        int[][] datac = new int[n][l];
        long sum = 0;
        for(int i = 0 ; i < m ; i++){
            for(int j = 0 ; j < n ; j++){
                data[i][j]=scan.nextInt();
            }
        }
        for(int i = 0 ; i < n; i ++){
            for(int j = 0 ; j < l ; j++){
                datac[i][j]=scan.nextInt();
            }
        }
        for(int i = 0 ; i < m ; i++){
            for(int k = 0 ; k < l ; k++){
                for(int j = 0 ; j  <n; j++){
                    sum+=data[i][j]*datac[j][k];
                }
                System.out.print(sum);
                if(k+1<l) System.out.print(" ");
                sum=0;
            }
            System.out.println("");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int m = scan.nextInt();
        int n = scan.nextInt();
        int l = scan.nextInt();
        int[][] data = new int[m][n];
        int[][] datac = new int[n][l];
        long sum = 0;
        for(int i = 0 ; i < m ; i++){
            for(int j = 0 ; j < n ; j++){
                data[i][j]=scan.nextInt();
            }
        }
        for(int i = 0 ; i < n; i ++){
            for(int j = 0 ; j < l ; j++){
                datac[i][j]=scan.nextInt();
            }
        }
        for(int i = 0 ; i < m ; i++){
            for(int k = 0 ; k < l ; k++){
                for(int j = 0 ; j  <n; j++){
                    sum+=data[i][j]*datac[j][k];
                }
                System.out.print(sum);
                if(k+1<l) System.out.print(" ");
                sum=0;
            }
            System.out.println("");
        }
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int m = scan.nextInt();
        int n = scan.nextInt();
        int l = scan.nextInt();
        int[][] data = new int[m][n];
        int[][] datac = new int[n][l];
        long sum = 0;
        for(int i = 0 ; i < m ; i++){
            for(int j = 0 ; j < n ; j++){
                data[i][j]=scan.nextInt();
            }
        }
        for(int i = 0 ; i < n; i ++){
            for(int j = 0 ; j < l ; j++){
                datac[i][j]=scan.nextInt();
            }
        }
        for(int i = 0 ; i < m ; i++){
            for(int k = 0 ; k < l ; k++){
                for(int j = 0 ; j  <n; j++){
                    sum+=data[i][j]*datac[j][k];
                }
                System.out.print(sum);
                if(k+1<l) System.out.print(" ");
                sum=0;
            }
            System.out.println("");
        }
    } main {
        Scanner scan = new Scanner(System.in);
        int m = scan.nextInt();
        int n = scan.nextInt();
        int l = scan.nextInt();
        int[][] data = new int[m][n];
        int[][] datac = new int[n][l];
        long sum = 0;
        for(int i = 0 ; i < m ; i++){
            for(int j = 0 ; j < n ; j++){
                data[i][j]=scan.nextInt();
            }
        }
        for(int i = 0 ; i < n; i ++){
            for(int j = 0 ; j < l ; j++){
                datac[i][j]=scan.nextInt();
            }
        }
        for(int i = 0 ; i < m ; i++){
            for(int k = 0 ; k < l ; k++){
                for(int j = 0 ; j  <n; j++){
                    sum+=data[i][j]*datac[j][k];
                }
                System.out.print(sum);
                if(k+1<l) System.out.print(" ");
                sum=0;
            }
            System.out.println("");
        }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int m = scan.nextInt(); m scan.nextInt() scan.nextInt scan int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int l = scan.nextInt(); l scan.nextInt() scan.nextInt scan int[][] data = new int[m][n]; data new int[m][n] m n int[][] datac = new int[n][l]; datac new int[n][l] n l long sum = 0; sum 0 for(int i = 0 ; i < m ; i++){
            for(int j = 0 ; j < n ; j++){
                data[i][j]=scan.nextInt();
            }
        } int i = 0 ; int i = 0 ; i 0 i < m i m i++ i++ i {
            for(int j = 0 ; j < n ; j++){
                data[i][j]=scan.nextInt();
            }
        } {
            for(int j = 0 ; j < n ; j++){
                data[i][j]=scan.nextInt();
            }
        } for(int j = 0 ; j < n ; j++){
                data[i][j]=scan.nextInt();
            } int j = 0 ; int j = 0 ; j 0 j < n j n j++ j++ j {
                data[i][j]=scan.nextInt();
            } {
                data[i][j]=scan.nextInt();
            } data[i][j]=scan.nextInt() data[i][j] data[i] data i j scan.nextInt() scan.nextInt scan for(int i = 0 ; i < n; i ++){
            for(int j = 0 ; j < l ; j++){
                datac[i][j]=scan.nextInt();
            }
        } int i = 0 ; int i = 0 ; i 0 i < n i n i ++ i ++ i {
            for(int j = 0 ; j < l ; j++){
                datac[i][j]=scan.nextInt();
            }
        } {
            for(int j = 0 ; j < l ; j++){
                datac[i][j]=scan.nextInt();
            }
        } for(int j = 0 ; j < l ; j++){
                datac[i][j]=scan.nextInt();
            } int j = 0 ; int j = 0 ; j 0 j < l j l j++ j++ j {
                datac[i][j]=scan.nextInt();
            } {
                datac[i][j]=scan.nextInt();
            } datac[i][j]=scan.nextInt() datac[i][j] datac[i] datac i j scan.nextInt() scan.nextInt scan for(int i = 0 ; i < m ; i++){
            for(int k = 0 ; k < l ; k++){
                for(int j = 0 ; j  <n; j++){
                    sum+=data[i][j]*datac[j][k];
                }
                System.out.print(sum);
                if(k+1<l) System.out.print(" ");
                sum=0;
            }
            System.out.println("");
        } int i = 0 ; int i = 0 ; i 0 i < m i m i++ i++ i {
            for(int k = 0 ; k < l ; k++){
                for(int j = 0 ; j  <n; j++){
                    sum+=data[i][j]*datac[j][k];
                }
                System.out.print(sum);
                if(k+1<l) System.out.print(" ");
                sum=0;
            }
            System.out.println("");
        } {
            for(int k = 0 ; k < l ; k++){
                for(int j = 0 ; j  <n; j++){
                    sum+=data[i][j]*datac[j][k];
                }
                System.out.print(sum);
                if(k+1<l) System.out.print(" ");
                sum=0;
            }
            System.out.println("");
        } for(int k = 0 ; k < l ; k++){
                for(int j = 0 ; j  <n; j++){
                    sum+=data[i][j]*datac[j][k];
                }
                System.out.print(sum);
                if(k+1<l) System.out.print(" ");
                sum=0;
            } int k = 0 ; int k = 0 ; k 0 k < l k l k++ k++ k {
                for(int j = 0 ; j  <n; j++){
                    sum+=data[i][j]*datac[j][k];
                }
                System.out.print(sum);
                if(k+1<l) System.out.print(" ");
                sum=0;
            } {
                for(int j = 0 ; j  <n; j++){
                    sum+=data[i][j]*datac[j][k];
                }
                System.out.print(sum);
                if(k+1<l) System.out.print(" ");
                sum=0;
            } for(int j = 0 ; j  <n; j++){
                    sum+=data[i][j]*datac[j][k];
                } int j = 0 ; int j = 0 ; j 0 j  <n j n j++ j++ j {
                    sum+=data[i][j]*datac[j][k];
                } {
                    sum+=data[i][j]*datac[j][k];
                } sum+=data[i][j]*datac[j][k] sum data[i][j]*datac[j][k] data[i][j] data[i] data i j datac[j][k] datac[j] datac j k System.out.print(sum) System.out.print System.out System System.out sum if(k+1<l) System.out.print(" "); k+1<l k+1 k 1 l System.out.print(" ") System.out.print System.out System System.out " " sum=0 sum 0 System.out.println("") System.out.println System.out System System.out "" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int m = scan.nextInt();
        int n = scan.nextInt();
        int l = scan.nextInt();
        int[][] data = new int[m][n];
        int[][] datac = new int[n][l];
        long sum = 0;
        for(int i = 0 ; i < m ; i++){
            for(int j = 0 ; j < n ; j++){
                data[i][j]=scan.nextInt();
            }
        }
        for(int i = 0 ; i < n; i ++){
            for(int j = 0 ; j < l ; j++){
                datac[i][j]=scan.nextInt();
            }
        }
        for(int i = 0 ; i < m ; i++){
            for(int k = 0 ; k < l ; k++){
                for(int j = 0 ; j  <n; j++){
                    sum+=data[i][j]*datac[j][k];
                }
                System.out.print(sum);
                if(k+1<l) System.out.print(" ");
                sum=0;
            }
            System.out.println("");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int m = scan.nextInt();
        int n = scan.nextInt();
        int l = scan.nextInt();
        int[][] data = new int[m][n];
        int[][] datac = new int[n][l];
        long sum = 0;
        for(int i = 0 ; i < m ; i++){
            for(int j = 0 ; j < n ; j++){
                data[i][j]=scan.nextInt();
            }
        }
        for(int i = 0 ; i < n; i ++){
            for(int j = 0 ; j < l ; j++){
                datac[i][j]=scan.nextInt();
            }
        }
        for(int i = 0 ; i < m ; i++){
            for(int k = 0 ; k < l ; k++){
                for(int j = 0 ; j  <n; j++){
                    sum+=data[i][j]*datac[j][k];
                }
                System.out.print(sum);
                if(k+1<l) System.out.print(" ");
                sum=0;
            }
            System.out.println("");
        }
    }
} Main
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int m = scan.nextInt();
        int n = scan.nextInt();
        int l = scan.nextInt();
        int[][] data = new int[m][n];
        int[][] datac = new int[n][l];
        long sum = 0;
        for(int i = 0 ; i < m ; i++){
            for(int j = 0 ; j < n ; j++){
                data[i][j]=scan.nextInt();
            }
        }
        for(int i = 0 ; i < n; i ++){
            for(int j = 0 ; j < l ; j++){
                datac[i][j]=scan.nextInt();
            }
        }
        for(int i = 0 ; i < m ; i++){
            for(int k = 0 ; k < l ; k++){
                for(int j = 0 ; j  <n; j++){
                    sum+=data[i][j]*datac[j][k];
                }
                System.out.print(sum);
                if(k+1<l) System.out.print(" ");
                sum=0;
            }
            System.out.println("");
        }
    }
}
