import 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();
        
        long[][] aij = new long[n][m];
        long[][] bij = new long[m][l];
        long[][] cij = new long[n][l];
        
        for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
                cij[i][j] = 0;
            }
        }
        
        for(int i = 0; i < n; i++){
            for(int j = 0; j < m; j++){
                aij[i][j] = sc.nextLong();
            }
        }
         for(int i = 0; i < m; i++){
            for(int j = 0; j < l; j++){
                bij[i][j] = sc.nextLong();
            }
        }
        
        for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
            	for(int k = 0; k < m; k++){
                	cij[i][j] += aij[i][k]*bij[k][j];
                }
            }
        }
        
        for(int i = 0; i < n; i++){
            for(int j = 0; j < l-1; j++){
               	System.out.print(cij[i][j] + " ");
            }
			System.out.println(cij[i][l-1]);
        }
    }

} import java.util.*; util.* java 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();
        
        long[][] aij = new long[n][m];
        long[][] bij = new long[m][l];
        long[][] cij = new long[n][l];
        
        for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
                cij[i][j] = 0;
            }
        }
        
        for(int i = 0; i < n; i++){
            for(int j = 0; j < m; j++){
                aij[i][j] = sc.nextLong();
            }
        }
         for(int i = 0; i < m; i++){
            for(int j = 0; j < l; j++){
                bij[i][j] = sc.nextLong();
            }
        }
        
        for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
            	for(int k = 0; k < m; k++){
                	cij[i][j] += aij[i][k]*bij[k][j];
                }
            }
        }
        
        for(int i = 0; i < n; i++){
            for(int j = 0; j < l-1; j++){
               	System.out.print(cij[i][j] + " ");
            }
			System.out.println(cij[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();
        
        long[][] aij = new long[n][m];
        long[][] bij = new long[m][l];
        long[][] cij = new long[n][l];
        
        for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
                cij[i][j] = 0;
            }
        }
        
        for(int i = 0; i < n; i++){
            for(int j = 0; j < m; j++){
                aij[i][j] = sc.nextLong();
            }
        }
         for(int i = 0; i < m; i++){
            for(int j = 0; j < l; j++){
                bij[i][j] = sc.nextLong();
            }
        }
        
        for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
            	for(int k = 0; k < m; k++){
                	cij[i][j] += aij[i][k]*bij[k][j];
                }
            }
        }
        
        for(int i = 0; i < n; i++){
            for(int j = 0; j < l-1; j++){
               	System.out.print(cij[i][j] + " ");
            }
			System.out.println(cij[i][l-1]);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        
        int n = sc.nextInt();
        int m = sc.nextInt();
        int l = sc.nextInt();
        
        long[][] aij = new long[n][m];
        long[][] bij = new long[m][l];
        long[][] cij = new long[n][l];
        
        for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
                cij[i][j] = 0;
            }
        }
        
        for(int i = 0; i < n; i++){
            for(int j = 0; j < m; j++){
                aij[i][j] = sc.nextLong();
            }
        }
         for(int i = 0; i < m; i++){
            for(int j = 0; j < l; j++){
                bij[i][j] = sc.nextLong();
            }
        }
        
        for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
            	for(int k = 0; k < m; k++){
                	cij[i][j] += aij[i][k]*bij[k][j];
                }
            }
        }
        
        for(int i = 0; i < n; i++){
            for(int j = 0; j < l-1; j++){
               	System.out.print(cij[i][j] + " ");
            }
			System.out.println(cij[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 long[][] aij = new long[n][m]; aij new long[n][m] n m long[][] bij = new long[m][l]; bij new long[m][l] m l long[][] cij = new long[n][l]; cij new long[n][l] n l for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
                cij[i][j] = 0;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            for(int j = 0; j < l; j++){
                cij[i][j] = 0;
            }
        } {
            for(int j = 0; j < l; j++){
                cij[i][j] = 0;
            }
        } for(int j = 0; j < l; j++){
                cij[i][j] = 0;
            } int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
                cij[i][j] = 0;
            } {
                cij[i][j] = 0;
            } cij[i][j] = 0 cij[i][j] cij[i] cij i j 0 for(int i = 0; i < n; i++){
            for(int j = 0; j < m; j++){
                aij[i][j] = sc.nextLong();
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            for(int j = 0; j < m; j++){
                aij[i][j] = sc.nextLong();
            }
        } {
            for(int j = 0; j < m; j++){
                aij[i][j] = sc.nextLong();
            }
        } for(int j = 0; j < m; j++){
                aij[i][j] = sc.nextLong();
            } int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
                aij[i][j] = sc.nextLong();
            } {
                aij[i][j] = sc.nextLong();
            } aij[i][j] = sc.nextLong() aij[i][j] aij[i] aij i j sc.nextLong() sc.nextLong sc for(int i = 0; i < m; i++){
            for(int j = 0; j < l; j++){
                bij[i][j] = sc.nextLong();
            }
        } int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
            for(int j = 0; j < l; j++){
                bij[i][j] = sc.nextLong();
            }
        } {
            for(int j = 0; j < l; j++){
                bij[i][j] = sc.nextLong();
            }
        } for(int j = 0; j < l; j++){
                bij[i][j] = sc.nextLong();
            } int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
                bij[i][j] = sc.nextLong();
            } {
                bij[i][j] = sc.nextLong();
            } bij[i][j] = sc.nextLong() bij[i][j] bij[i] bij i j sc.nextLong() sc.nextLong sc for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
            	for(int k = 0; k < m; k++){
                	cij[i][j] += aij[i][k]*bij[k][j];
                }
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            for(int j = 0; j < l; j++){
            	for(int k = 0; k < m; k++){
                	cij[i][j] += aij[i][k]*bij[k][j];
                }
            }
        } {
            for(int j = 0; j < l; j++){
            	for(int k = 0; k < m; k++){
                	cij[i][j] += aij[i][k]*bij[k][j];
                }
            }
        } for(int j = 0; j < l; j++){
            	for(int k = 0; k < m; k++){
                	cij[i][j] += aij[i][k]*bij[k][j];
                }
            } int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
            	for(int k = 0; k < m; k++){
                	cij[i][j] += aij[i][k]*bij[k][j];
                }
            } {
            	for(int k = 0; k < m; k++){
                	cij[i][j] += aij[i][k]*bij[k][j];
                }
            } for(int k = 0; k < m; k++){
                	cij[i][j] += aij[i][k]*bij[k][j];
                } int k = 0; int k = 0; k 0 k < m k m k++ k++ k {
                	cij[i][j] += aij[i][k]*bij[k][j];
                } {
                	cij[i][j] += aij[i][k]*bij[k][j];
                } cij[i][j] += aij[i][k]*bij[k][j] cij[i][j] cij[i] cij i j aij[i][k]*bij[k][j] aij[i][k] aij[i] aij i k bij[k][j] bij[k] bij k j for(int i = 0; i < n; i++){
            for(int j = 0; j < l-1; j++){
               	System.out.print(cij[i][j] + " ");
            }
			System.out.println(cij[i][l-1]);
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            for(int j = 0; j < l-1; j++){
               	System.out.print(cij[i][j] + " ");
            }
			System.out.println(cij[i][l-1]);
        } {
            for(int j = 0; j < l-1; j++){
               	System.out.print(cij[i][j] + " ");
            }
			System.out.println(cij[i][l-1]);
        } for(int j = 0; j < l-1; j++){
               	System.out.print(cij[i][j] + " ");
            } int j = 0; int j = 0; j 0 j < l-1 j l-1 l 1 j++ j++ j {
               	System.out.print(cij[i][j] + " ");
            } {
               	System.out.print(cij[i][j] + " ");
            } System.out.print(cij[i][j] + " ") System.out.print System.out System System.out cij[i][j] + " " cij[i][j] cij[i] cij i j " " System.out.println(cij[i][l-1]) System.out.println System.out System System.out cij[i][l-1] cij[i] cij 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();
        
        long[][] aij = new long[n][m];
        long[][] bij = new long[m][l];
        long[][] cij = new long[n][l];
        
        for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
                cij[i][j] = 0;
            }
        }
        
        for(int i = 0; i < n; i++){
            for(int j = 0; j < m; j++){
                aij[i][j] = sc.nextLong();
            }
        }
         for(int i = 0; i < m; i++){
            for(int j = 0; j < l; j++){
                bij[i][j] = sc.nextLong();
            }
        }
        
        for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
            	for(int k = 0; k < m; k++){
                	cij[i][j] += aij[i][k]*bij[k][j];
                }
            }
        }
        
        for(int i = 0; i < n; i++){
            for(int j = 0; j < l-1; j++){
               	System.out.print(cij[i][j] + " ");
            }
			System.out.println(cij[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();
        
        long[][] aij = new long[n][m];
        long[][] bij = new long[m][l];
        long[][] cij = new long[n][l];
        
        for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
                cij[i][j] = 0;
            }
        }
        
        for(int i = 0; i < n; i++){
            for(int j = 0; j < m; j++){
                aij[i][j] = sc.nextLong();
            }
        }
         for(int i = 0; i < m; i++){
            for(int j = 0; j < l; j++){
                bij[i][j] = sc.nextLong();
            }
        }
        
        for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
            	for(int k = 0; k < m; k++){
                	cij[i][j] += aij[i][k]*bij[k][j];
                }
            }
        }
        
        for(int i = 0; i < n; i++){
            for(int j = 0; j < l-1; j++){
               	System.out.print(cij[i][j] + " ");
            }
			System.out.println(cij[i][l-1]);
        }
    }

} Main
import 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();
        
        long[][] aij = new long[n][m];
        long[][] bij = new long[m][l];
        long[][] cij = new long[n][l];
        
        for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
                cij[i][j] = 0;
            }
        }
        
        for(int i = 0; i < n; i++){
            for(int j = 0; j < m; j++){
                aij[i][j] = sc.nextLong();
            }
        }
         for(int i = 0; i < m; i++){
            for(int j = 0; j < l; j++){
                bij[i][j] = sc.nextLong();
            }
        }
        
        for(int i = 0; i < n; i++){
            for(int j = 0; j < l; j++){
            	for(int k = 0; k < m; k++){
                	cij[i][j] += aij[i][k]*bij[k][j];
                }
            }
        }
        
        for(int i = 0; i < n; i++){
            for(int j = 0; j < l-1; j++){
               	System.out.print(cij[i][j] + " ");
            }
			System.out.println(cij[i][l-1]);
        }
    }

}
