import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    Scanner stdin = new Scanner(System.in);
    int n = stdin.nextInt();
    int m = stdin.nextInt();
    int l = stdin.nextInt();
    int[][] A = new int[n][m];
    int[][] B = new int[m][l];

    for (int i = 0; i < n; i++) {
      for (int j = 0; j < m; j++) {
        A[i][j] = stdin.nextInt();
      }
    }

    for (int i = 0; i < m; i++) {
      for (int j = 0; j < l; j++) {
        B[i][j] = stdin.nextInt();
      }
    }

    for (int i = 0; i < n; i++) {
      for (int j = 0; j < l; j++) {
        long sum = 0;
        for (int 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.Scanner; Scanner java.util public class Main {

  public static void main(String[] args) {
    Scanner stdin = new Scanner(System.in);
    int n = stdin.nextInt();
    int m = stdin.nextInt();
    int l = stdin.nextInt();
    int[][] A = new int[n][m];
    int[][] B = new int[m][l];

    for (int i = 0; i < n; i++) {
      for (int j = 0; j < m; j++) {
        A[i][j] = stdin.nextInt();
      }
    }

    for (int i = 0; i < m; i++) {
      for (int j = 0; j < l; j++) {
        B[i][j] = stdin.nextInt();
      }
    }

    for (int i = 0; i < n; i++) {
      for (int j = 0; j < l; j++) {
        long sum = 0;
        for (int 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 stdin = new Scanner(System.in);
    int n = stdin.nextInt();
    int m = stdin.nextInt();
    int l = stdin.nextInt();
    int[][] A = new int[n][m];
    int[][] B = new int[m][l];

    for (int i = 0; i < n; i++) {
      for (int j = 0; j < m; j++) {
        A[i][j] = stdin.nextInt();
      }
    }

    for (int i = 0; i < m; i++) {
      for (int j = 0; j < l; j++) {
        B[i][j] = stdin.nextInt();
      }
    }

    for (int i = 0; i < n; i++) {
      for (int j = 0; j < l; j++) {
        long sum = 0;
        for (int k = 0; k < m; k++) {
          sum += A[i][k] * B[k][j];
        }
        System.out.printf(j == l - 1 ? "%d%n" : "%d ", sum);
      }
    }
  } main {
    Scanner stdin = new Scanner(System.in);
    int n = stdin.nextInt();
    int m = stdin.nextInt();
    int l = stdin.nextInt();
    int[][] A = new int[n][m];
    int[][] B = new int[m][l];

    for (int i = 0; i < n; i++) {
      for (int j = 0; j < m; j++) {
        A[i][j] = stdin.nextInt();
      }
    }

    for (int i = 0; i < m; i++) {
      for (int j = 0; j < l; j++) {
        B[i][j] = stdin.nextInt();
      }
    }

    for (int i = 0; i < n; i++) {
      for (int j = 0; j < l; j++) {
        long sum = 0;
        for (int k = 0; k < m; k++) {
          sum += A[i][k] * B[k][j];
        }
        System.out.printf(j == l - 1 ? "%d%n" : "%d ", sum);
      }
    }
  } Scanner stdin = new Scanner(System.in); stdin new Scanner(System.in) int n = stdin.nextInt(); n stdin.nextInt() stdin.nextInt stdin int m = stdin.nextInt(); m stdin.nextInt() stdin.nextInt stdin int l = stdin.nextInt(); l stdin.nextInt() stdin.nextInt stdin int[][] A = new int[n][m]; A new int[n][m] n m int[][] B = new int[m][l]; B new int[m][l] m l for (int i = 0; i < n; i++) {
      for (int j = 0; j < m; j++) {
        A[i][j] = stdin.nextInt();
      }
    } 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] = stdin.nextInt();
      }
    } {
      for (int j = 0; j < m; j++) {
        A[i][j] = stdin.nextInt();
      }
    } for (int j = 0; j < m; j++) {
        A[i][j] = stdin.nextInt();
      } int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
        A[i][j] = stdin.nextInt();
      } {
        A[i][j] = stdin.nextInt();
      } A[i][j] = stdin.nextInt() A[i][j] A[i] A i j stdin.nextInt() stdin.nextInt stdin for (int i = 0; i < m; i++) {
      for (int j = 0; j < l; j++) {
        B[i][j] = stdin.nextInt();
      }
    } 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] = stdin.nextInt();
      }
    } {
      for (int j = 0; j < l; j++) {
        B[i][j] = stdin.nextInt();
      }
    } for (int j = 0; j < l; j++) {
        B[i][j] = stdin.nextInt();
      } int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
        B[i][j] = stdin.nextInt();
      } {
        B[i][j] = stdin.nextInt();
      } B[i][j] = stdin.nextInt() B[i][j] B[i] B i j stdin.nextInt() stdin.nextInt stdin for (int i = 0; i < n; i++) {
      for (int j = 0; j < l; j++) {
        long sum = 0;
        for (int k = 0; k < m; k++) {
          sum += A[i][k] * B[k][j];
        }
        System.out.printf(j == l - 1 ? "%d%n" : "%d ", 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 += A[i][k] * B[k][j];
        }
        System.out.printf(j == l - 1 ? "%d%n" : "%d ", sum);
      }
    } {
      for (int j = 0; j < l; j++) {
        long sum = 0;
        for (int k = 0; k < m; k++) {
          sum += A[i][k] * B[k][j];
        }
        System.out.printf(j == l - 1 ? "%d%n" : "%d ", sum);
      }
    } for (int j = 0; j < l; j++) {
        long sum = 0;
        for (int k = 0; k < m; k++) {
          sum += A[i][k] * B[k][j];
        }
        System.out.printf(j == l - 1 ? "%d%n" : "%d ", 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 += A[i][k] * B[k][j];
        }
        System.out.printf(j == l - 1 ? "%d%n" : "%d ", sum);
      } {
        long sum = 0;
        for (int k = 0; k < m; k++) {
          sum += A[i][k] * B[k][j];
        }
        System.out.printf(j == l - 1 ? "%d%n" : "%d ", sum);
      } long sum = 0; sum 0 for (int k = 0; k < m; k++) {
          sum += A[i][k] * B[k][j];
        } int k = 0; int 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 public class Main {

  public static void main(String[] args) {
    Scanner stdin = new Scanner(System.in);
    int n = stdin.nextInt();
    int m = stdin.nextInt();
    int l = stdin.nextInt();
    int[][] A = new int[n][m];
    int[][] B = new int[m][l];

    for (int i = 0; i < n; i++) {
      for (int j = 0; j < m; j++) {
        A[i][j] = stdin.nextInt();
      }
    }

    for (int i = 0; i < m; i++) {
      for (int j = 0; j < l; j++) {
        B[i][j] = stdin.nextInt();
      }
    }

    for (int i = 0; i < n; i++) {
      for (int j = 0; j < l; j++) {
        long sum = 0;
        for (int k = 0; k < m; k++) {
          sum += A[i][k] * B[k][j];
        }
        System.out.printf(j == l - 1 ? "%d%n" : "%d ", sum);
      }
    }
  }
} public class Main {

  public static void main(String[] args) {
    Scanner stdin = new Scanner(System.in);
    int n = stdin.nextInt();
    int m = stdin.nextInt();
    int l = stdin.nextInt();
    int[][] A = new int[n][m];
    int[][] B = new int[m][l];

    for (int i = 0; i < n; i++) {
      for (int j = 0; j < m; j++) {
        A[i][j] = stdin.nextInt();
      }
    }

    for (int i = 0; i < m; i++) {
      for (int j = 0; j < l; j++) {
        B[i][j] = stdin.nextInt();
      }
    }

    for (int i = 0; i < n; i++) {
      for (int j = 0; j < l; j++) {
        long sum = 0;
        for (int k = 0; k < m; k++) {
          sum += A[i][k] * B[k][j];
        }
        System.out.printf(j == l - 1 ? "%d%n" : "%d ", sum);
      }
    }
  }
} Main
import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    Scanner stdin = new Scanner(System.in);
    int n = stdin.nextInt();
    int m = stdin.nextInt();
    int l = stdin.nextInt();
    int[][] A = new int[n][m];
    int[][] B = new int[m][l];

    for (int i = 0; i < n; i++) {
      for (int j = 0; j < m; j++) {
        A[i][j] = stdin.nextInt();
      }
    }

    for (int i = 0; i < m; i++) {
      for (int j = 0; j < l; j++) {
        B[i][j] = stdin.nextInt();
      }
    }

    for (int i = 0; i < n; i++) {
      for (int j = 0; j < l; j++) {
        long sum = 0;
        for (int k = 0; k < m; k++) {
          sum += A[i][k] * B[k][j];
        }
        System.out.printf(j == l - 1 ? "%d%n" : "%d ", sum);
      }
    }
  }
}