

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
 
class Main{
  public static void main(String args[]) throws IOException{
   int n,m,l;
   BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
   String line = br.readLine(); 
   String[] token = line.split(" ");
   n = Integer.parseInt(token[0]);
   m = Integer.parseInt(token[1]);
   l = Integer.parseInt(token[2]); 
   long[][] matrixA = new long[n][m];
   long[][] matrixB = new long[m][l];
   long[][] matrixanswer = new long[n][l]; 
 
   for(int i = 0; i < n ;i++){
     String line2 = br.readLine(); 
     String[] token2 = line2.split(" ");
     for(int j = 0; j < m ;j++){
        matrixA[i][j] = Integer.parseInt(token2[j]);
         
     }//for  
   }//for
 
   for(int k = 0; k < m ;k++){
     String line2 = br.readLine(); 
     String[] token2 = line2.split(" ");
     for(int x = 0; x < l ;x++){
        matrixB[k][x] = Integer.parseInt(token2[x]);
         
     }//for  
   }//for
 
   for(int o = 0; o < n ;o++){
      for(int p = 0; p < l ;p++){
        matrixanswer[o][p] = 0;
         
     }//for 
   }   
   
   for(int a = 0; a < n ; a++ ){
    for(int b = 0; b < l ;b++){
      for(int c = 0; c < m;c++){ 
         matrixanswer[a][b] =matrixanswer[a][b]+  matrixA[a][c]*matrixB[c][b]; 
      } 
    }
   }    

    for(int s = 0; s < n ;s++){
      for(int t = 0; t < l ;t++){
       if(t!=0){ System.out.print(" ");}

        System.out.print(matrixanswer[s][t]);
       
      }
       System.out.println(); 
    }
 
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main{
  public static void main(String args[]) throws IOException{
   int n,m,l;
   BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
   String line = br.readLine(); 
   String[] token = line.split(" ");
   n = Integer.parseInt(token[0]);
   m = Integer.parseInt(token[1]);
   l = Integer.parseInt(token[2]); 
   long[][] matrixA = new long[n][m];
   long[][] matrixB = new long[m][l];
   long[][] matrixanswer = new long[n][l]; 
 
   for(int i = 0; i < n ;i++){
     String line2 = br.readLine(); 
     String[] token2 = line2.split(" ");
     for(int j = 0; j < m ;j++){
        matrixA[i][j] = Integer.parseInt(token2[j]);
         
     }//for  
   }//for
 
   for(int k = 0; k < m ;k++){
     String line2 = br.readLine(); 
     String[] token2 = line2.split(" ");
     for(int x = 0; x < l ;x++){
        matrixB[k][x] = Integer.parseInt(token2[x]);
         
     }//for  
   }//for
 
   for(int o = 0; o < n ;o++){
      for(int p = 0; p < l ;p++){
        matrixanswer[o][p] = 0;
         
     }//for 
   }   
   
   for(int a = 0; a < n ; a++ ){
    for(int b = 0; b < l ;b++){
      for(int c = 0; c < m;c++){ 
         matrixanswer[a][b] =matrixanswer[a][b]+  matrixA[a][c]*matrixB[c][b]; 
      } 
    }
   }    

    for(int s = 0; s < n ;s++){
      for(int t = 0; t < l ;t++){
       if(t!=0){ System.out.print(" ");}

        System.out.print(matrixanswer[s][t]);
       
      }
       System.out.println(); 
    }
 
  }
} Main public static void main(String args[]) throws IOException{
   int n,m,l;
   BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
   String line = br.readLine(); 
   String[] token = line.split(" ");
   n = Integer.parseInt(token[0]);
   m = Integer.parseInt(token[1]);
   l = Integer.parseInt(token[2]); 
   long[][] matrixA = new long[n][m];
   long[][] matrixB = new long[m][l];
   long[][] matrixanswer = new long[n][l]; 
 
   for(int i = 0; i < n ;i++){
     String line2 = br.readLine(); 
     String[] token2 = line2.split(" ");
     for(int j = 0; j < m ;j++){
        matrixA[i][j] = Integer.parseInt(token2[j]);
         
     }//for  
   }//for
 
   for(int k = 0; k < m ;k++){
     String line2 = br.readLine(); 
     String[] token2 = line2.split(" ");
     for(int x = 0; x < l ;x++){
        matrixB[k][x] = Integer.parseInt(token2[x]);
         
     }//for  
   }//for
 
   for(int o = 0; o < n ;o++){
      for(int p = 0; p < l ;p++){
        matrixanswer[o][p] = 0;
         
     }//for 
   }   
   
   for(int a = 0; a < n ; a++ ){
    for(int b = 0; b < l ;b++){
      for(int c = 0; c < m;c++){ 
         matrixanswer[a][b] =matrixanswer[a][b]+  matrixA[a][c]*matrixB[c][b]; 
      } 
    }
   }    

    for(int s = 0; s < n ;s++){
      for(int t = 0; t < l ;t++){
       if(t!=0){ System.out.print(" ");}

        System.out.print(matrixanswer[s][t]);
       
      }
       System.out.println(); 
    }
 
  } main {
   int n,m,l;
   BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
   String line = br.readLine(); 
   String[] token = line.split(" ");
   n = Integer.parseInt(token[0]);
   m = Integer.parseInt(token[1]);
   l = Integer.parseInt(token[2]); 
   long[][] matrixA = new long[n][m];
   long[][] matrixB = new long[m][l];
   long[][] matrixanswer = new long[n][l]; 
 
   for(int i = 0; i < n ;i++){
     String line2 = br.readLine(); 
     String[] token2 = line2.split(" ");
     for(int j = 0; j < m ;j++){
        matrixA[i][j] = Integer.parseInt(token2[j]);
         
     }//for  
   }//for
 
   for(int k = 0; k < m ;k++){
     String line2 = br.readLine(); 
     String[] token2 = line2.split(" ");
     for(int x = 0; x < l ;x++){
        matrixB[k][x] = Integer.parseInt(token2[x]);
         
     }//for  
   }//for
 
   for(int o = 0; o < n ;o++){
      for(int p = 0; p < l ;p++){
        matrixanswer[o][p] = 0;
         
     }//for 
   }   
   
   for(int a = 0; a < n ; a++ ){
    for(int b = 0; b < l ;b++){
      for(int c = 0; c < m;c++){ 
         matrixanswer[a][b] =matrixanswer[a][b]+  matrixA[a][c]*matrixB[c][b]; 
      } 
    }
   }    

    for(int s = 0; s < n ;s++){
      for(int t = 0; t < l ;t++){
       if(t!=0){ System.out.print(" ");}

        System.out.print(matrixanswer[s][t]);
       
      }
       System.out.println(); 
    }
 
  } int n n m m l; l BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = br.readLine(); line br.readLine() br.readLine br String[] token = line.split(" "); token line.split(" ") line.split line " " n = Integer.parseInt(token[0]) n Integer.parseInt(token[0]) Integer.parseInt Integer token[0] token 0 m = Integer.parseInt(token[1]) m Integer.parseInt(token[1]) Integer.parseInt Integer token[1] token 1 l = Integer.parseInt(token[2]) l Integer.parseInt(token[2]) Integer.parseInt Integer token[2] token 2 long[][] matrixA = new long[n][m]; matrixA new long[n][m] n m long[][] matrixB = new long[m][l]; matrixB new long[m][l] m l long[][] matrixanswer = new long[n][l]; matrixanswer new long[n][l] n l for(int i = 0; i < n ;i++){
     String line2 = br.readLine(); 
     String[] token2 = line2.split(" ");
     for(int j = 0; j < m ;j++){
        matrixA[i][j] = Integer.parseInt(token2[j]);
         
     }//for  
   }//for int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
     String line2 = br.readLine(); 
     String[] token2 = line2.split(" ");
     for(int j = 0; j < m ;j++){
        matrixA[i][j] = Integer.parseInt(token2[j]);
         
     }//for  
   }//for {
     String line2 = br.readLine(); 
     String[] token2 = line2.split(" ");
     for(int j = 0; j < m ;j++){
        matrixA[i][j] = Integer.parseInt(token2[j]);
         
     }//for  
   } String line2 = br.readLine(); line2 br.readLine() br.readLine br String[] token2 = line2.split(" "); token2 line2.split(" ") line2.split line2 " " for(int j = 0; j < m ;j++){
        matrixA[i][j] = Integer.parseInt(token2[j]);
         
     }//for   int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
        matrixA[i][j] = Integer.parseInt(token2[j]);
         
     }//for   {
        matrixA[i][j] = Integer.parseInt(token2[j]);
         
     } matrixA[i][j] = Integer.parseInt(token2[j]) matrixA[i][j] matrixA[i] matrixA i j Integer.parseInt(token2[j]) Integer.parseInt Integer token2[j] token2 j for(int k = 0; k < m ;k++){
     String line2 = br.readLine(); 
     String[] token2 = line2.split(" ");
     for(int x = 0; x < l ;x++){
        matrixB[k][x] = Integer.parseInt(token2[x]);
         
     }//for  
   }//for int k = 0; int k = 0; k 0 k < m k m k++ k++ k {
     String line2 = br.readLine(); 
     String[] token2 = line2.split(" ");
     for(int x = 0; x < l ;x++){
        matrixB[k][x] = Integer.parseInt(token2[x]);
         
     }//for  
   }//for {
     String line2 = br.readLine(); 
     String[] token2 = line2.split(" ");
     for(int x = 0; x < l ;x++){
        matrixB[k][x] = Integer.parseInt(token2[x]);
         
     }//for  
   } String line2 = br.readLine(); line2 br.readLine() br.readLine br String[] token2 = line2.split(" "); token2 line2.split(" ") line2.split line2 " " for(int x = 0; x < l ;x++){
        matrixB[k][x] = Integer.parseInt(token2[x]);
         
     }//for   int x = 0; int x = 0; x 0 x < l x l x++ x++ x {
        matrixB[k][x] = Integer.parseInt(token2[x]);
         
     }//for   {
        matrixB[k][x] = Integer.parseInt(token2[x]);
         
     } matrixB[k][x] = Integer.parseInt(token2[x]) matrixB[k][x] matrixB[k] matrixB k x Integer.parseInt(token2[x]) Integer.parseInt Integer token2[x] token2 x for(int o = 0; o < n ;o++){
      for(int p = 0; p < l ;p++){
        matrixanswer[o][p] = 0;
         
     }//for 
   } int o = 0; int o = 0; o 0 o < n o n o++ o++ o {
      for(int p = 0; p < l ;p++){
        matrixanswer[o][p] = 0;
         
     }//for 
   } {
      for(int p = 0; p < l ;p++){
        matrixanswer[o][p] = 0;
         
     }//for 
   } for(int p = 0; p < l ;p++){
        matrixanswer[o][p] = 0;
         
     }//for  int p = 0; int p = 0; p 0 p < l p l p++ p++ p {
        matrixanswer[o][p] = 0;
         
     }//for  {
        matrixanswer[o][p] = 0;
         
     } matrixanswer[o][p] = 0 matrixanswer[o][p] matrixanswer[o] matrixanswer o p 0 for(int a = 0; a < n ; a++ ){
    for(int b = 0; b < l ;b++){
      for(int c = 0; c < m;c++){ 
         matrixanswer[a][b] =matrixanswer[a][b]+  matrixA[a][c]*matrixB[c][b]; 
      } 
    }
   } int a = 0; int a = 0; a 0 a < n a n a++ a++ a {
    for(int b = 0; b < l ;b++){
      for(int c = 0; c < m;c++){ 
         matrixanswer[a][b] =matrixanswer[a][b]+  matrixA[a][c]*matrixB[c][b]; 
      } 
    }
   } {
    for(int b = 0; b < l ;b++){
      for(int c = 0; c < m;c++){ 
         matrixanswer[a][b] =matrixanswer[a][b]+  matrixA[a][c]*matrixB[c][b]; 
      } 
    }
   } for(int b = 0; b < l ;b++){
      for(int c = 0; c < m;c++){ 
         matrixanswer[a][b] =matrixanswer[a][b]+  matrixA[a][c]*matrixB[c][b]; 
      } 
    } int b = 0; int b = 0; b 0 b < l b l b++ b++ b {
      for(int c = 0; c < m;c++){ 
         matrixanswer[a][b] =matrixanswer[a][b]+  matrixA[a][c]*matrixB[c][b]; 
      } 
    } {
      for(int c = 0; c < m;c++){ 
         matrixanswer[a][b] =matrixanswer[a][b]+  matrixA[a][c]*matrixB[c][b]; 
      } 
    } for(int c = 0; c < m;c++){ 
         matrixanswer[a][b] =matrixanswer[a][b]+  matrixA[a][c]*matrixB[c][b]; 
      } int c = 0; int c = 0; c 0 c < m c m c++ c++ c { 
         matrixanswer[a][b] =matrixanswer[a][b]+  matrixA[a][c]*matrixB[c][b]; 
      } { 
         matrixanswer[a][b] =matrixanswer[a][b]+  matrixA[a][c]*matrixB[c][b]; 
      } matrixanswer[a][b] =matrixanswer[a][b]+  matrixA[a][c]*matrixB[c][b] matrixanswer[a][b] matrixanswer[a] matrixanswer a b matrixanswer[a][b]+  matrixA[a][c]*matrixB[c][b] matrixanswer[a][b] matrixanswer[a] matrixanswer a b matrixA[a][c]*matrixB[c][b] matrixA[a][c] matrixA[a] matrixA a c matrixB[c][b] matrixB[c] matrixB c b for(int s = 0; s < n ;s++){
      for(int t = 0; t < l ;t++){
       if(t!=0){ System.out.print(" ");}

        System.out.print(matrixanswer[s][t]);
       
      }
       System.out.println(); 
    } int s = 0; int s = 0; s 0 s < n s n s++ s++ s {
      for(int t = 0; t < l ;t++){
       if(t!=0){ System.out.print(" ");}

        System.out.print(matrixanswer[s][t]);
       
      }
       System.out.println(); 
    } {
      for(int t = 0; t < l ;t++){
       if(t!=0){ System.out.print(" ");}

        System.out.print(matrixanswer[s][t]);
       
      }
       System.out.println(); 
    } for(int t = 0; t < l ;t++){
       if(t!=0){ System.out.print(" ");}

        System.out.print(matrixanswer[s][t]);
       
      } int t = 0; int t = 0; t 0 t < l t l t++ t++ t {
       if(t!=0){ System.out.print(" ");}

        System.out.print(matrixanswer[s][t]);
       
      } {
       if(t!=0){ System.out.print(" ");}

        System.out.print(matrixanswer[s][t]);
       
      } if(t!=0){ System.out.print(" ");} t!=0 t 0 { System.out.print(" ");} System.out.print(" ") System.out.print System.out System System.out " " System.out.print(matrixanswer[s][t]) System.out.print System.out System System.out matrixanswer[s][t] matrixanswer[s] matrixanswer s t System.out.println() System.out.println System.out System System.out String args[] args


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
 
class Main{
  public static void main(String args[]) throws IOException{
   int n,m,l;
   BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
   String line = br.readLine(); 
   String[] token = line.split(" ");
   n = Integer.parseInt(token[0]);
   m = Integer.parseInt(token[1]);
   l = Integer.parseInt(token[2]); 
   long[][] matrixA = new long[n][m];
   long[][] matrixB = new long[m][l];
   long[][] matrixanswer = new long[n][l]; 
 
   for(int i = 0; i < n ;i++){
     String line2 = br.readLine(); 
     String[] token2 = line2.split(" ");
     for(int j = 0; j < m ;j++){
        matrixA[i][j] = Integer.parseInt(token2[j]);
         
     }//for  
   }//for
 
   for(int k = 0; k < m ;k++){
     String line2 = br.readLine(); 
     String[] token2 = line2.split(" ");
     for(int x = 0; x < l ;x++){
        matrixB[k][x] = Integer.parseInt(token2[x]);
         
     }//for  
   }//for
 
   for(int o = 0; o < n ;o++){
      for(int p = 0; p < l ;p++){
        matrixanswer[o][p] = 0;
         
     }//for 
   }   
   
   for(int a = 0; a < n ; a++ ){
    for(int b = 0; b < l ;b++){
      for(int c = 0; c < m;c++){ 
         matrixanswer[a][b] =matrixanswer[a][b]+  matrixA[a][c]*matrixB[c][b]; 
      } 
    }
   }    

    for(int s = 0; s < n ;s++){
      for(int t = 0; t < l ;t++){
       if(t!=0){ System.out.print(" ");}

        System.out.print(matrixanswer[s][t]);
       
      }
       System.out.println(); 
    }
 
  }
}