import java.util.*;

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 a[][] = new long[n][m];
    long b[][] = new long[m][l];
    int i, j, k;
    long sum;
    for (i = 0; i < n; i++) {
      for (j = 0; j < m; j++) {
        a[i][j] = sc.nextInt();
      }
    }
    for (i = 0; i < m; i++) {
      for (j = 0; j < l; j++) {
        b[i][j] = sc.nextInt();
      }
    }
    for (i = 0; i < n; i++) {
      for (j = 0; j < l; j++) {
        sum = 0;
        for (k = 0; k < m; k++) {
          sum += a[i][k] * b[k][j];
        }
        System.out.printf(j == l - 1 ? "%d%n" : "%d ", sum);
      }
    }
  }
} import java.util.*; util.* java 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 a[][] = new long[n][m];
    long b[][] = new long[m][l];
    int i, j, k;
    long sum;
    for (i = 0; i < n; i++) {
      for (j = 0; j < m; j++) {
        a[i][j] = sc.nextInt();
      }
    }
    for (i = 0; i < m; i++) {
      for (j = 0; j < l; j++) {
        b[i][j] = sc.nextInt();
      }
    }
    for (i = 0; i < n; i++) {
      for (j = 0; j < l; j++) {
        sum = 0;
        for (k = 0; k < m; k++) {
          sum += a[i][k] * b[k][j];
        }
        System.out.printf(j == l - 1 ? "%d%n" : "%d ", sum);
      }
    }
  }
} 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 a[][] = new long[n][m];
    long b[][] = new long[m][l];
    int i, j, k;
    long sum;
    for (i = 0; i < n; i++) {
      for (j = 0; j < m; j++) {
        a[i][j] = sc.nextInt();
      }
    }
    for (i = 0; i < m; i++) {
      for (j = 0; j < l; j++) {
        b[i][j] = sc.nextInt();
      }
    }
    for (i = 0; i < n; i++) {
      for (j = 0; j < l; j++) {
        sum = 0;
        for (k = 0; k < m; k++) {
          sum += a[i][k] * b[k][j];
        }
        System.out.printf(j == l - 1 ? "%d%n" : "%d ", sum);
      }
    }
  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int m = sc.nextInt();
    int l = sc.nextInt();
    long a[][] = new long[n][m];
    long b[][] = new long[m][l];
    int i, j, k;
    long sum;
    for (i = 0; i < n; i++) {
      for (j = 0; j < m; j++) {
        a[i][j] = sc.nextInt();
      }
    }
    for (i = 0; i < m; i++) {
      for (j = 0; j < l; j++) {
        b[i][j] = sc.nextInt();
      }
    }
    for (i = 0; i < n; i++) {
      for (j = 0; j < l; j++) {
        sum = 0;
        for (k = 0; k < m; k++) {
          sum += a[i][k] * b[k][j];
        }
        System.out.printf(j == l - 1 ? "%d%n" : "%d ", sum);
      }
    }
  } 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 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 int i i j j k; k long sum; sum for (i = 0; i < n; i++) {
      for (j = 0; j < m; j++) {
        a[i][j] = sc.nextInt();
      }
    } i = 0; i = 0 i 0 i < n i n i++ i++ i {
      for (j = 0; j < m; j++) {
        a[i][j] = sc.nextInt();
      }
    } {
      for (j = 0; j < m; j++) {
        a[i][j] = sc.nextInt();
      }
    } for (j = 0; j < m; j++) {
        a[i][j] = sc.nextInt();
      } j = 0; j = 0 j 0 j < m j m j++ j++ j {
        a[i][j] = sc.nextInt();
      } {
        a[i][j] = sc.nextInt();
      } a[i][j] = sc.nextInt() a[i][j] a[i] a i j sc.nextInt() sc.nextInt sc for (i = 0; i < m; i++) {
      for (j = 0; j < l; j++) {
        b[i][j] = sc.nextInt();
      }
    } i = 0; i = 0 i 0 i < m i m i++ i++ i {
      for (j = 0; j < l; j++) {
        b[i][j] = sc.nextInt();
      }
    } {
      for (j = 0; j < l; j++) {
        b[i][j] = sc.nextInt();
      }
    } for (j = 0; j < l; j++) {
        b[i][j] = sc.nextInt();
      } j = 0; j = 0 j 0 j < l j l j++ j++ j {
        b[i][j] = sc.nextInt();
      } {
        b[i][j] = sc.nextInt();
      } b[i][j] = sc.nextInt() b[i][j] b[i] b i j sc.nextInt() sc.nextInt sc for (i = 0; i < n; i++) {
      for (j = 0; j < l; j++) {
        sum = 0;
        for (k = 0; k < m; k++) {
          sum += a[i][k] * b[k][j];
        }
        System.out.printf(j == l - 1 ? "%d%n" : "%d ", sum);
      }
    } i = 0; i = 0 i 0 i < n i n i++ i++ i {
      for (j = 0; j < l; j++) {
        sum = 0;
        for (k = 0; k < m; k++) {
          sum += a[i][k] * b[k][j];
        }
        System.out.printf(j == l - 1 ? "%d%n" : "%d ", sum);
      }
    } {
      for (j = 0; j < l; j++) {
        sum = 0;
        for (k = 0; k < m; k++) {
          sum += a[i][k] * b[k][j];
        }
        System.out.printf(j == l - 1 ? "%d%n" : "%d ", sum);
      }
    } for (j = 0; j < l; j++) {
        sum = 0;
        for (k = 0; k < m; k++) {
          sum += a[i][k] * b[k][j];
        }
        System.out.printf(j == l - 1 ? "%d%n" : "%d ", sum);
      } j = 0; j = 0 j 0 j < l j l j++ j++ j {
        sum = 0;
        for (k = 0; k < m; k++) {
          sum += a[i][k] * b[k][j];
        }
        System.out.printf(j == l - 1 ? "%d%n" : "%d ", sum);
      } {
        sum = 0;
        for (k = 0; k < m; k++) {
          sum += a[i][k] * b[k][j];
        }
        System.out.printf(j == l - 1 ? "%d%n" : "%d ", sum);
      } sum = 0 sum 0 for (k = 0; k < m; k++) {
          sum += a[i][k] * b[k][j];
        } k = 0; k = 0 k 0 k < m k m k++ k++ k {
          sum += a[i][k] * b[k][j];
        } {
          sum += a[i][k] * b[k][j];
        } 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 System.out.printf(j == l - 1 ? "%d%n" : "%d ", sum) System.out.printf System.out System System.out j == l - 1 ? "%d%n" : "%d " j == l - 1 j l - 1 l 1 "%d%n" "%d " sum String args[] args
import java.util.*;

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 a[][] = new long[n][m];
    long b[][] = new long[m][l];
    int i, j, k;
    long sum;
    for (i = 0; i < n; i++) {
      for (j = 0; j < m; j++) {
        a[i][j] = sc.nextInt();
      }
    }
    for (i = 0; i < m; i++) {
      for (j = 0; j < l; j++) {
        b[i][j] = sc.nextInt();
      }
    }
    for (i = 0; i < n; i++) {
      for (j = 0; j < l; j++) {
        sum = 0;
        for (k = 0; k < m; k++) {
          sum += a[i][k] * b[k][j];
        }
        System.out.printf(j == l - 1 ? "%d%n" : "%d ", sum);
      }
    }
  }
}