import java.util.Scanner;
  
class Main{
  public static void main(String[] arg){
    int n, m, l;
    int [][] a,b;
    long [][] c;
 
    Scanner in = new Scanner(System.in);

    n = in.nextInt();
    m = in.nextInt();
    l = in.nextInt();

    a = new int[n][m];
    b = new int[m][l];
    c = new long[n][l];

    for(int i=0; i<a.length; i++){
        in.nextLine();
        for(int j=0; j<a[0].length; j++)
            a[i][j] = in.nextInt();
    }

    for(int i=0; i<b.length; i++){
        in.nextLine();
        for(int j=0; j<b[0].length; j++)
            b[i][j] = in.nextInt();
    }

    for(int i=0; i<c.length; i++)
        for(int j=0; j<c[0].length; j++)
            c[i][j] = 0;

    for(int i=0; i<n; i++)
        for(int j=0; j<l; j++)
            for(int k=0; k<m; k++)
                c[i][j] += a[i][k]*b[k][j];
 
    for(int i=0,j; i<c.length; i++){
        for(j=0; j<c[0].length-1; j++)
            System.out.print(c[i][j] + " ");
        System.out.println(c[i][j]);
    }
 
  }
} import java.util.Scanner; Scanner java.util class Main{
  public static void main(String[] arg){
    int n, m, l;
    int [][] a,b;
    long [][] c;
 
    Scanner in = new Scanner(System.in);

    n = in.nextInt();
    m = in.nextInt();
    l = in.nextInt();

    a = new int[n][m];
    b = new int[m][l];
    c = new long[n][l];

    for(int i=0; i<a.length; i++){
        in.nextLine();
        for(int j=0; j<a[0].length; j++)
            a[i][j] = in.nextInt();
    }

    for(int i=0; i<b.length; i++){
        in.nextLine();
        for(int j=0; j<b[0].length; j++)
            b[i][j] = in.nextInt();
    }

    for(int i=0; i<c.length; i++)
        for(int j=0; j<c[0].length; j++)
            c[i][j] = 0;

    for(int i=0; i<n; i++)
        for(int j=0; j<l; j++)
            for(int k=0; k<m; k++)
                c[i][j] += a[i][k]*b[k][j];
 
    for(int i=0,j; i<c.length; i++){
        for(j=0; j<c[0].length-1; j++)
            System.out.print(c[i][j] + " ");
        System.out.println(c[i][j]);
    }
 
  }
} Main public static void main(String[] arg){
    int n, m, l;
    int [][] a,b;
    long [][] c;
 
    Scanner in = new Scanner(System.in);

    n = in.nextInt();
    m = in.nextInt();
    l = in.nextInt();

    a = new int[n][m];
    b = new int[m][l];
    c = new long[n][l];

    for(int i=0; i<a.length; i++){
        in.nextLine();
        for(int j=0; j<a[0].length; j++)
            a[i][j] = in.nextInt();
    }

    for(int i=0; i<b.length; i++){
        in.nextLine();
        for(int j=0; j<b[0].length; j++)
            b[i][j] = in.nextInt();
    }

    for(int i=0; i<c.length; i++)
        for(int j=0; j<c[0].length; j++)
            c[i][j] = 0;

    for(int i=0; i<n; i++)
        for(int j=0; j<l; j++)
            for(int k=0; k<m; k++)
                c[i][j] += a[i][k]*b[k][j];
 
    for(int i=0,j; i<c.length; i++){
        for(j=0; j<c[0].length-1; j++)
            System.out.print(c[i][j] + " ");
        System.out.println(c[i][j]);
    }
 
  } main {
    int n, m, l;
    int [][] a,b;
    long [][] c;
 
    Scanner in = new Scanner(System.in);

    n = in.nextInt();
    m = in.nextInt();
    l = in.nextInt();

    a = new int[n][m];
    b = new int[m][l];
    c = new long[n][l];

    for(int i=0; i<a.length; i++){
        in.nextLine();
        for(int j=0; j<a[0].length; j++)
            a[i][j] = in.nextInt();
    }

    for(int i=0; i<b.length; i++){
        in.nextLine();
        for(int j=0; j<b[0].length; j++)
            b[i][j] = in.nextInt();
    }

    for(int i=0; i<c.length; i++)
        for(int j=0; j<c[0].length; j++)
            c[i][j] = 0;

    for(int i=0; i<n; i++)
        for(int j=0; j<l; j++)
            for(int k=0; k<m; k++)
                c[i][j] += a[i][k]*b[k][j];
 
    for(int i=0,j; i<c.length; i++){
        for(j=0; j<c[0].length-1; j++)
            System.out.print(c[i][j] + " ");
        System.out.println(c[i][j]);
    }
 
  } int n n m m l; l int [][] a a b; b long [][] c; c Scanner in = new Scanner(System.in); in new Scanner(System.in) n = in.nextInt() n in.nextInt() in.nextInt in m = in.nextInt() m in.nextInt() in.nextInt in l = in.nextInt() l in.nextInt() in.nextInt in a = new int[n][m] a new int[n][m] n m b = new int[m][l] b new int[m][l] m l c = new long[n][l] c new long[n][l] n l for(int i=0; i<a.length; i++){
        in.nextLine();
        for(int j=0; j<a[0].length; j++)
            a[i][j] = in.nextInt();
    } int i=0; int i=0; i 0 i<a.length i a.length a a.length i++ i++ i {
        in.nextLine();
        for(int j=0; j<a[0].length; j++)
            a[i][j] = in.nextInt();
    } {
        in.nextLine();
        for(int j=0; j<a[0].length; j++)
            a[i][j] = in.nextInt();
    } in.nextLine() in.nextLine in for(int j=0; j<a[0].length; j++)
            a[i][j] = in.nextInt(); int j=0; int j=0; j 0 j<a[0].length j a[0].length a[0] a 0 a[0].length j++ j++ j a[i][j] = in.nextInt(); a[i][j] = in.nextInt() a[i][j] a[i] a i j in.nextInt() in.nextInt in for(int i=0; i<b.length; i++){
        in.nextLine();
        for(int j=0; j<b[0].length; j++)
            b[i][j] = in.nextInt();
    } int i=0; int i=0; i 0 i<b.length i b.length b b.length i++ i++ i {
        in.nextLine();
        for(int j=0; j<b[0].length; j++)
            b[i][j] = in.nextInt();
    } {
        in.nextLine();
        for(int j=0; j<b[0].length; j++)
            b[i][j] = in.nextInt();
    } in.nextLine() in.nextLine in for(int j=0; j<b[0].length; j++)
            b[i][j] = in.nextInt(); int j=0; int j=0; j 0 j<b[0].length j b[0].length b[0] b 0 b[0].length j++ j++ j b[i][j] = in.nextInt(); b[i][j] = in.nextInt() b[i][j] b[i] b i j in.nextInt() in.nextInt in for(int i=0; i<c.length; i++)
        for(int j=0; j<c[0].length; j++)
            c[i][j] = 0; int i=0; int i=0; i 0 i<c.length i c.length c c.length i++ i++ i for(int j=0; j<c[0].length; j++)
            c[i][j] = 0; for(int j=0; j<c[0].length; j++)
            c[i][j] = 0; int j=0; int j=0; j 0 j<c[0].length j c[0].length c[0] c 0 c[0].length j++ j++ j c[i][j] = 0; c[i][j] = 0 c[i][j] c[i] c i j 0 for(int i=0; i<n; i++)
        for(int j=0; j<l; j++)
            for(int k=0; k<m; k++)
                c[i][j] += a[i][k]*b[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++)
                c[i][j] += a[i][k]*b[k][j]; for(int j=0; j<l; j++)
            for(int k=0; k<m; k++)
                c[i][j] += a[i][k]*b[k][j]; int j=0; int j=0; j 0 j<l j l j++ j++ j for(int k=0; k<m; k++)
                c[i][j] += a[i][k]*b[k][j]; for(int k=0; k<m; k++)
                c[i][j] += a[i][k]*b[k][j]; int k=0; int k=0; k 0 k<m k m k++ k++ k c[i][j] += a[i][k]*b[k][j]; c[i][j] += a[i][k]*b[k][j] c[i][j] c[i] c i j a[i][k]*b[k][j] a[i][k] a[i] a i k b[k][j] b[k] b k j for(int i=0,j; i<c.length; i++){
        for(j=0; j<c[0].length-1; j++)
            System.out.print(c[i][j] + " ");
        System.out.println(c[i][j]);
    } int i=0,j; int i=0 i 0 j; j i<c.length i c.length c c.length i++ i++ i {
        for(j=0; j<c[0].length-1; j++)
            System.out.print(c[i][j] + " ");
        System.out.println(c[i][j]);
    } {
        for(j=0; j<c[0].length-1; j++)
            System.out.print(c[i][j] + " ");
        System.out.println(c[i][j]);
    } for(j=0; j<c[0].length-1; j++)
            System.out.print(c[i][j] + " "); j=0; j=0 j 0 j<c[0].length-1 j c[0].length-1 c[0].length c[0] c 0 c[0].length 1 j++ j++ j System.out.print(c[i][j] + " "); System.out.print(c[i][j] + " ") System.out.print System.out System System.out c[i][j] + " " c[i][j] c[i] c i j " " System.out.println(c[i][j]) System.out.println System.out System System.out c[i][j] c[i] c i j String[] arg arg
import java.util.Scanner;
  
class Main{
  public static void main(String[] arg){
    int n, m, l;
    int [][] a,b;
    long [][] c;
 
    Scanner in = new Scanner(System.in);

    n = in.nextInt();
    m = in.nextInt();
    l = in.nextInt();

    a = new int[n][m];
    b = new int[m][l];
    c = new long[n][l];

    for(int i=0; i<a.length; i++){
        in.nextLine();
        for(int j=0; j<a[0].length; j++)
            a[i][j] = in.nextInt();
    }

    for(int i=0; i<b.length; i++){
        in.nextLine();
        for(int j=0; j<b[0].length; j++)
            b[i][j] = in.nextInt();
    }

    for(int i=0; i<c.length; i++)
        for(int j=0; j<c[0].length; j++)
            c[i][j] = 0;

    for(int i=0; i<n; i++)
        for(int j=0; j<l; j++)
            for(int k=0; k<m; k++)
                c[i][j] += a[i][k]*b[k][j];
 
    for(int i=0,j; i<c.length; i++){
        for(j=0; j<c[0].length-1; j++)
            System.out.print(c[i][j] + " ");
        System.out.println(c[i][j]);
    }
 
  }
}