

import java.util.Scanner;
public class Main 
{ 
    public static void main(String[] args)
    {
       Scanner sc = new Scanner(System.in);  
       int n,m,l;
       n = sc.nextInt();
       m = sc.nextInt();
       l = sc.nextInt();
       long [] [] A = new long [n][m];
       long [] [] B = new long [m][l];
       for(int i=0; i<n; i++)  //input
       {
           for (int j = 0; j<m; j++)
           {
               A[i][j] = sc.nextLong();
           }
       }
        for(int i=0; i<m; i++)  //input
       {
           for (int j = 0; j<l; j++)
           {
               B[i][j] = sc.nextLong();
           }
       }
        
        for(int i=0; i<n; i++) //multiplying
        {
            for(int j = 0; j< l; j++)
            {
                long sum = 0;
                for(int k = 0; k< m;k++)
                {
                   sum = sum + A[i][k] * B[k][j];
                }
                if(j!=l-1)
                    {
                        System.out.print(sum + " ");
                    }
                else System.out.println(sum);
            
            }
        }
    }
}
 import java.util.Scanner; Scanner java.util public class Main 
{ 
    public static void main(String[] args)
    {
       Scanner sc = new Scanner(System.in);  
       int n,m,l;
       n = sc.nextInt();
       m = sc.nextInt();
       l = sc.nextInt();
       long [] [] A = new long [n][m];
       long [] [] B = new long [m][l];
       for(int i=0; i<n; i++)  //input
       {
           for (int j = 0; j<m; j++)
           {
               A[i][j] = sc.nextLong();
           }
       }
        for(int i=0; i<m; i++)  //input
       {
           for (int j = 0; j<l; j++)
           {
               B[i][j] = sc.nextLong();
           }
       }
        
        for(int i=0; i<n; i++) //multiplying
        {
            for(int j = 0; j< l; j++)
            {
                long sum = 0;
                for(int k = 0; k< m;k++)
                {
                   sum = sum + A[i][k] * B[k][j];
                }
                if(j!=l-1)
                    {
                        System.out.print(sum + " ");
                    }
                else System.out.println(sum);
            
            }
        }
    }
} Main public static void main(String[] args)
    {
       Scanner sc = new Scanner(System.in);  
       int n,m,l;
       n = sc.nextInt();
       m = sc.nextInt();
       l = sc.nextInt();
       long [] [] A = new long [n][m];
       long [] [] B = new long [m][l];
       for(int i=0; i<n; i++)  //input
       {
           for (int j = 0; j<m; j++)
           {
               A[i][j] = sc.nextLong();
           }
       }
        for(int i=0; i<m; i++)  //input
       {
           for (int j = 0; j<l; j++)
           {
               B[i][j] = sc.nextLong();
           }
       }
        
        for(int i=0; i<n; i++) //multiplying
        {
            for(int j = 0; j< l; j++)
            {
                long sum = 0;
                for(int k = 0; k< m;k++)
                {
                   sum = sum + A[i][k] * B[k][j];
                }
                if(j!=l-1)
                    {
                        System.out.print(sum + " ");
                    }
                else System.out.println(sum);
            
            }
        }
    } main {
       Scanner sc = new Scanner(System.in);  
       int n,m,l;
       n = sc.nextInt();
       m = sc.nextInt();
       l = sc.nextInt();
       long [] [] A = new long [n][m];
       long [] [] B = new long [m][l];
       for(int i=0; i<n; i++)  //input
       {
           for (int j = 0; j<m; j++)
           {
               A[i][j] = sc.nextLong();
           }
       }
        for(int i=0; i<m; i++)  //input
       {
           for (int j = 0; j<l; j++)
           {
               B[i][j] = sc.nextLong();
           }
       }
        
        for(int i=0; i<n; i++) //multiplying
        {
            for(int j = 0; j< l; j++)
            {
                long sum = 0;
                for(int k = 0; k< m;k++)
                {
                   sum = sum + A[i][k] * B[k][j];
                }
                if(j!=l-1)
                    {
                        System.out.print(sum + " ");
                    }
                else System.out.println(sum);
            
            }
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n n m m l; l n = sc.nextInt() n sc.nextInt() sc.nextInt sc m = sc.nextInt() m sc.nextInt() sc.nextInt sc l = sc.nextInt() l sc.nextInt() sc.nextInt sc long [] [] A = new long [n][m]; A new long [n][m] n m long [] [] B = new long [m][l]; B new long [m][l] m l for(int i=0; i<n; i++)  //input
       {
           for (int j = 0; j<m; j++)
           {
               A[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++)
           {
               A[i][j] = sc.nextLong();
           }
       } {
           for (int j = 0; j<m; j++)
           {
               A[i][j] = sc.nextLong();
           }
       } for (int j = 0; j<m; j++)
           {
               A[i][j] = sc.nextLong();
           } int j = 0; int j = 0; j 0 j<m j m j++ j++ j {
               A[i][j] = sc.nextLong();
           } {
               A[i][j] = sc.nextLong();
           } A[i][j] = sc.nextLong() A[i][j] A[i] A i j sc.nextLong() sc.nextLong sc for(int i=0; i<m; i++)  //input
       {
           for (int j = 0; j<l; j++)
           {
               B[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++)
           {
               B[i][j] = sc.nextLong();
           }
       } {
           for (int j = 0; j<l; j++)
           {
               B[i][j] = sc.nextLong();
           }
       } for (int j = 0; j<l; j++)
           {
               B[i][j] = sc.nextLong();
           } int j = 0; int j = 0; j 0 j<l j l j++ j++ j {
               B[i][j] = sc.nextLong();
           } {
               B[i][j] = sc.nextLong();
           } B[i][j] = sc.nextLong() B[i][j] B[i] B i j sc.nextLong() sc.nextLong sc for(int i=0; i<n; i++) //multiplying
        {
            for(int j = 0; j< l; j++)
            {
                long sum = 0;
                for(int k = 0; k< m;k++)
                {
                   sum = sum + A[i][k] * B[k][j];
                }
                if(j!=l-1)
                    {
                        System.out.print(sum + " ");
                    }
                else System.out.println(sum);
            
            }
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            for(int j = 0; j< l; j++)
            {
                long sum = 0;
                for(int k = 0; k< m;k++)
                {
                   sum = sum + A[i][k] * B[k][j];
                }
                if(j!=l-1)
                    {
                        System.out.print(sum + " ");
                    }
                else System.out.println(sum);
            
            }
        } {
            for(int j = 0; j< l; j++)
            {
                long sum = 0;
                for(int k = 0; k< m;k++)
                {
                   sum = sum + A[i][k] * B[k][j];
                }
                if(j!=l-1)
                    {
                        System.out.print(sum + " ");
                    }
                else System.out.println(sum);
            
            }
        } for(int j = 0; j< l; j++)
            {
                long sum = 0;
                for(int k = 0; k< m;k++)
                {
                   sum = sum + A[i][k] * B[k][j];
                }
                if(j!=l-1)
                    {
                        System.out.print(sum + " ");
                    }
                else System.out.println(sum);
            
            } int j = 0; int j = 0; j 0 j< l j l j++ j++ j {
                long sum = 0;
                for(int k = 0; k< m;k++)
                {
                   sum = sum + A[i][k] * B[k][j];
                }
                if(j!=l-1)
                    {
                        System.out.print(sum + " ");
                    }
                else System.out.println(sum);
            
            } {
                long sum = 0;
                for(int k = 0; k< m;k++)
                {
                   sum = sum + A[i][k] * B[k][j];
                }
                if(j!=l-1)
                    {
                        System.out.print(sum + " ");
                    }
                else System.out.println(sum);
            
            } long sum = 0; sum 0 for(int k = 0; k< m;k++)
                {
                   sum = sum + A[i][k] * B[k][j];
                } int k = 0; int k = 0; k 0 k< m k m k++ k++ k {
                   sum = sum + A[i][k] * B[k][j];
                } {
                   sum = sum + A[i][k] * B[k][j];
                } sum = sum + A[i][k] * B[k][j] sum sum + A[i][k] * B[k][j] sum A[i][k] * B[k][j] A[i][k] A[i] A i k B[k][j] B[k] B k j if(j!=l-1)
                    {
                        System.out.print(sum + " ");
                    }
                else System.out.println(sum); j!=l-1 j l-1 l 1 {
                        System.out.print(sum + " ");
                    } System.out.print(sum + " ") System.out.print System.out System System.out sum + " " sum " " System.out.println(sum) System.out.println System.out System System.out sum String[] args args public class Main 
{ 
    public static void main(String[] args)
    {
       Scanner sc = new Scanner(System.in);  
       int n,m,l;
       n = sc.nextInt();
       m = sc.nextInt();
       l = sc.nextInt();
       long [] [] A = new long [n][m];
       long [] [] B = new long [m][l];
       for(int i=0; i<n; i++)  //input
       {
           for (int j = 0; j<m; j++)
           {
               A[i][j] = sc.nextLong();
           }
       }
        for(int i=0; i<m; i++)  //input
       {
           for (int j = 0; j<l; j++)
           {
               B[i][j] = sc.nextLong();
           }
       }
        
        for(int i=0; i<n; i++) //multiplying
        {
            for(int j = 0; j< l; j++)
            {
                long sum = 0;
                for(int k = 0; k< m;k++)
                {
                   sum = sum + A[i][k] * B[k][j];
                }
                if(j!=l-1)
                    {
                        System.out.print(sum + " ");
                    }
                else System.out.println(sum);
            
            }
        }
    }
} public class Main 
{ 
    public static void main(String[] args)
    {
       Scanner sc = new Scanner(System.in);  
       int n,m,l;
       n = sc.nextInt();
       m = sc.nextInt();
       l = sc.nextInt();
       long [] [] A = new long [n][m];
       long [] [] B = new long [m][l];
       for(int i=0; i<n; i++)  //input
       {
           for (int j = 0; j<m; j++)
           {
               A[i][j] = sc.nextLong();
           }
       }
        for(int i=0; i<m; i++)  //input
       {
           for (int j = 0; j<l; j++)
           {
               B[i][j] = sc.nextLong();
           }
       }
        
        for(int i=0; i<n; i++) //multiplying
        {
            for(int j = 0; j< l; j++)
            {
                long sum = 0;
                for(int k = 0; k< m;k++)
                {
                   sum = sum + A[i][k] * B[k][j];
                }
                if(j!=l-1)
                    {
                        System.out.print(sum + " ");
                    }
                else System.out.println(sum);
            
            }
        }
    }
} Main


import java.util.Scanner;
public class Main 
{ 
    public static void main(String[] args)
    {
       Scanner sc = new Scanner(System.in);  
       int n,m,l;
       n = sc.nextInt();
       m = sc.nextInt();
       l = sc.nextInt();
       long [] [] A = new long [n][m];
       long [] [] B = new long [m][l];
       for(int i=0; i<n; i++)  //input
       {
           for (int j = 0; j<m; j++)
           {
               A[i][j] = sc.nextLong();
           }
       }
        for(int i=0; i<m; i++)  //input
       {
           for (int j = 0; j<l; j++)
           {
               B[i][j] = sc.nextLong();
           }
       }
        
        for(int i=0; i<n; i++) //multiplying
        {
            for(int j = 0; j< l; j++)
            {
                long sum = 0;
                for(int k = 0; k< m;k++)
                {
                   sum = sum + A[i][k] * B[k][j];
                }
                if(j!=l-1)
                    {
                        System.out.print(sum + " ");
                    }
                else System.out.println(sum);
            
            }
        }
    }
}

