import java.io.*;
import java.util.*;
import java.lang.*;

class Main{
  public static void main(String[] args) throws IOException{
    Scanner scan=new Scanner(System.in);
    int n=Integer.parseInt(scan.next());
    int m=Integer.parseInt(scan.next());
    int l=Integer.parseInt(scan.next());
    long[][] arrayA=new long[n][m];
    for(int i=0;i<arrayA.length;i++){
      for(int j=0;j<arrayA[i].length;j++){
        arrayA[i][j]=Long.parseLong(scan.next());
      }
    }
    long[][] arrayB=new long[m][l];
    for(int i=0;i<arrayB.length;i++){
      for(int j=0;j<arrayB[i].length;j++){
        arrayB[i][j]=Long.parseLong(scan.next());
      }
    }

    long[][] arrayC=new long[n][l];
    for(int i=0;i<n;i++){
      for(int j=0;j<l;j++){
        for(int k=0;k<m;k++){
          arrayC[i][j]+=arrayA[i][k]*arrayB[k][j];
        }
      }
    }

    for(int i=0;i<arrayC.length;i++){
      for(int j=0;j<arrayC[i].length;j++){
        System.out.print(arrayC[i][j]);
        if(j<arrayC[i].length-1){
          System.out.print(" ");
        }
      }
      System.out.println();
    }
  }
} import java.io.*; io.* java import java.util.*; util.* java import java.lang.*; lang.* java class Main{
  public static void main(String[] args) throws IOException{
    Scanner scan=new Scanner(System.in);
    int n=Integer.parseInt(scan.next());
    int m=Integer.parseInt(scan.next());
    int l=Integer.parseInt(scan.next());
    long[][] arrayA=new long[n][m];
    for(int i=0;i<arrayA.length;i++){
      for(int j=0;j<arrayA[i].length;j++){
        arrayA[i][j]=Long.parseLong(scan.next());
      }
    }
    long[][] arrayB=new long[m][l];
    for(int i=0;i<arrayB.length;i++){
      for(int j=0;j<arrayB[i].length;j++){
        arrayB[i][j]=Long.parseLong(scan.next());
      }
    }

    long[][] arrayC=new long[n][l];
    for(int i=0;i<n;i++){
      for(int j=0;j<l;j++){
        for(int k=0;k<m;k++){
          arrayC[i][j]+=arrayA[i][k]*arrayB[k][j];
        }
      }
    }

    for(int i=0;i<arrayC.length;i++){
      for(int j=0;j<arrayC[i].length;j++){
        System.out.print(arrayC[i][j]);
        if(j<arrayC[i].length-1){
          System.out.print(" ");
        }
      }
      System.out.println();
    }
  }
} Main public static void main(String[] args) throws IOException{
    Scanner scan=new Scanner(System.in);
    int n=Integer.parseInt(scan.next());
    int m=Integer.parseInt(scan.next());
    int l=Integer.parseInt(scan.next());
    long[][] arrayA=new long[n][m];
    for(int i=0;i<arrayA.length;i++){
      for(int j=0;j<arrayA[i].length;j++){
        arrayA[i][j]=Long.parseLong(scan.next());
      }
    }
    long[][] arrayB=new long[m][l];
    for(int i=0;i<arrayB.length;i++){
      for(int j=0;j<arrayB[i].length;j++){
        arrayB[i][j]=Long.parseLong(scan.next());
      }
    }

    long[][] arrayC=new long[n][l];
    for(int i=0;i<n;i++){
      for(int j=0;j<l;j++){
        for(int k=0;k<m;k++){
          arrayC[i][j]+=arrayA[i][k]*arrayB[k][j];
        }
      }
    }

    for(int i=0;i<arrayC.length;i++){
      for(int j=0;j<arrayC[i].length;j++){
        System.out.print(arrayC[i][j]);
        if(j<arrayC[i].length-1){
          System.out.print(" ");
        }
      }
      System.out.println();
    }
  } main {
    Scanner scan=new Scanner(System.in);
    int n=Integer.parseInt(scan.next());
    int m=Integer.parseInt(scan.next());
    int l=Integer.parseInt(scan.next());
    long[][] arrayA=new long[n][m];
    for(int i=0;i<arrayA.length;i++){
      for(int j=0;j<arrayA[i].length;j++){
        arrayA[i][j]=Long.parseLong(scan.next());
      }
    }
    long[][] arrayB=new long[m][l];
    for(int i=0;i<arrayB.length;i++){
      for(int j=0;j<arrayB[i].length;j++){
        arrayB[i][j]=Long.parseLong(scan.next());
      }
    }

    long[][] arrayC=new long[n][l];
    for(int i=0;i<n;i++){
      for(int j=0;j<l;j++){
        for(int k=0;k<m;k++){
          arrayC[i][j]+=arrayA[i][k]*arrayB[k][j];
        }
      }
    }

    for(int i=0;i<arrayC.length;i++){
      for(int j=0;j<arrayC[i].length;j++){
        System.out.print(arrayC[i][j]);
        if(j<arrayC[i].length-1){
          System.out.print(" ");
        }
      }
      System.out.println();
    }
  } Scanner scan=new Scanner(System.in); scan new Scanner(System.in) int n=Integer.parseInt(scan.next()); n Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int m=Integer.parseInt(scan.next()); m Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int l=Integer.parseInt(scan.next()); l Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan long[][] arrayA=new long[n][m]; arrayA new long[n][m] n m for(int i=0;i<arrayA.length;i++){
      for(int j=0;j<arrayA[i].length;j++){
        arrayA[i][j]=Long.parseLong(scan.next());
      }
    } int i=0; int i=0; i 0 i<arrayA.length i arrayA.length arrayA arrayA.length i++ i++ i {
      for(int j=0;j<arrayA[i].length;j++){
        arrayA[i][j]=Long.parseLong(scan.next());
      }
    } {
      for(int j=0;j<arrayA[i].length;j++){
        arrayA[i][j]=Long.parseLong(scan.next());
      }
    } for(int j=0;j<arrayA[i].length;j++){
        arrayA[i][j]=Long.parseLong(scan.next());
      } int j=0; int j=0; j 0 j<arrayA[i].length j arrayA[i].length arrayA[i] arrayA i arrayA[i].length j++ j++ j {
        arrayA[i][j]=Long.parseLong(scan.next());
      } {
        arrayA[i][j]=Long.parseLong(scan.next());
      } arrayA[i][j]=Long.parseLong(scan.next()) arrayA[i][j] arrayA[i] arrayA i j Long.parseLong(scan.next()) Long.parseLong Long scan.next() scan.next scan long[][] arrayB=new long[m][l]; arrayB new long[m][l] m l for(int i=0;i<arrayB.length;i++){
      for(int j=0;j<arrayB[i].length;j++){
        arrayB[i][j]=Long.parseLong(scan.next());
      }
    } int i=0; int i=0; i 0 i<arrayB.length i arrayB.length arrayB arrayB.length i++ i++ i {
      for(int j=0;j<arrayB[i].length;j++){
        arrayB[i][j]=Long.parseLong(scan.next());
      }
    } {
      for(int j=0;j<arrayB[i].length;j++){
        arrayB[i][j]=Long.parseLong(scan.next());
      }
    } for(int j=0;j<arrayB[i].length;j++){
        arrayB[i][j]=Long.parseLong(scan.next());
      } int j=0; int j=0; j 0 j<arrayB[i].length j arrayB[i].length arrayB[i] arrayB i arrayB[i].length j++ j++ j {
        arrayB[i][j]=Long.parseLong(scan.next());
      } {
        arrayB[i][j]=Long.parseLong(scan.next());
      } arrayB[i][j]=Long.parseLong(scan.next()) arrayB[i][j] arrayB[i] arrayB i j Long.parseLong(scan.next()) Long.parseLong Long scan.next() scan.next scan long[][] arrayC=new long[n][l]; arrayC new long[n][l] n l for(int i=0;i<n;i++){
      for(int j=0;j<l;j++){
        for(int k=0;k<m;k++){
          arrayC[i][j]+=arrayA[i][k]*arrayB[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++){
          arrayC[i][j]+=arrayA[i][k]*arrayB[k][j];
        }
      }
    } {
      for(int j=0;j<l;j++){
        for(int k=0;k<m;k++){
          arrayC[i][j]+=arrayA[i][k]*arrayB[k][j];
        }
      }
    } for(int j=0;j<l;j++){
        for(int k=0;k<m;k++){
          arrayC[i][j]+=arrayA[i][k]*arrayB[k][j];
        }
      } int j=0; int j=0; j 0 j<l j l j++ j++ j {
        for(int k=0;k<m;k++){
          arrayC[i][j]+=arrayA[i][k]*arrayB[k][j];
        }
      } {
        for(int k=0;k<m;k++){
          arrayC[i][j]+=arrayA[i][k]*arrayB[k][j];
        }
      } for(int k=0;k<m;k++){
          arrayC[i][j]+=arrayA[i][k]*arrayB[k][j];
        } int k=0; int k=0; k 0 k<m k m k++ k++ k {
          arrayC[i][j]+=arrayA[i][k]*arrayB[k][j];
        } {
          arrayC[i][j]+=arrayA[i][k]*arrayB[k][j];
        } arrayC[i][j]+=arrayA[i][k]*arrayB[k][j] arrayC[i][j] arrayC[i] arrayC i j arrayA[i][k]*arrayB[k][j] arrayA[i][k] arrayA[i] arrayA i k arrayB[k][j] arrayB[k] arrayB k j for(int i=0;i<arrayC.length;i++){
      for(int j=0;j<arrayC[i].length;j++){
        System.out.print(arrayC[i][j]);
        if(j<arrayC[i].length-1){
          System.out.print(" ");
        }
      }
      System.out.println();
    } int i=0; int i=0; i 0 i<arrayC.length i arrayC.length arrayC arrayC.length i++ i++ i {
      for(int j=0;j<arrayC[i].length;j++){
        System.out.print(arrayC[i][j]);
        if(j<arrayC[i].length-1){
          System.out.print(" ");
        }
      }
      System.out.println();
    } {
      for(int j=0;j<arrayC[i].length;j++){
        System.out.print(arrayC[i][j]);
        if(j<arrayC[i].length-1){
          System.out.print(" ");
        }
      }
      System.out.println();
    } for(int j=0;j<arrayC[i].length;j++){
        System.out.print(arrayC[i][j]);
        if(j<arrayC[i].length-1){
          System.out.print(" ");
        }
      } int j=0; int j=0; j 0 j<arrayC[i].length j arrayC[i].length arrayC[i] arrayC i arrayC[i].length j++ j++ j {
        System.out.print(arrayC[i][j]);
        if(j<arrayC[i].length-1){
          System.out.print(" ");
        }
      } {
        System.out.print(arrayC[i][j]);
        if(j<arrayC[i].length-1){
          System.out.print(" ");
        }
      } System.out.print(arrayC[i][j]) System.out.print System.out System System.out arrayC[i][j] arrayC[i] arrayC i j if(j<arrayC[i].length-1){
          System.out.print(" ");
        } j<arrayC[i].length-1 j arrayC[i].length-1 arrayC[i].length arrayC[i] arrayC i arrayC[i].length 1 {
          System.out.print(" ");
        } System.out.print(" ") System.out.print System.out System System.out " " System.out.println() System.out.println System.out System System.out String[] args args
import java.io.*;
import java.util.*;
import java.lang.*;

class Main{
  public static void main(String[] args) throws IOException{
    Scanner scan=new Scanner(System.in);
    int n=Integer.parseInt(scan.next());
    int m=Integer.parseInt(scan.next());
    int l=Integer.parseInt(scan.next());
    long[][] arrayA=new long[n][m];
    for(int i=0;i<arrayA.length;i++){
      for(int j=0;j<arrayA[i].length;j++){
        arrayA[i][j]=Long.parseLong(scan.next());
      }
    }
    long[][] arrayB=new long[m][l];
    for(int i=0;i<arrayB.length;i++){
      for(int j=0;j<arrayB[i].length;j++){
        arrayB[i][j]=Long.parseLong(scan.next());
      }
    }

    long[][] arrayC=new long[n][l];
    for(int i=0;i<n;i++){
      for(int j=0;j<l;j++){
        for(int k=0;k<m;k++){
          arrayC[i][j]+=arrayA[i][k]*arrayB[k][j];
        }
      }
    }

    for(int i=0;i<arrayC.length;i++){
      for(int j=0;j<arrayC[i].length;j++){
        System.out.print(arrayC[i][j]);
        if(j<arrayC[i].length-1){
          System.out.print(" ");
        }
      }
      System.out.println();
    }
  }
}
