object Main {
  def main(args: Array[String]): Unit = {
    val scanner = new java.util.Scanner(System.in)

    val n, m, l = scanner.nextInt
    val a = Array.fill(n)(new Array[Long](m))
    val b = Array.fill(l)(new Array[Long](m))

    for(i <- 0 until n) {
      for(j <- 0 until m) {
        a(i)(j) = scanner.nextInt
      }
    }
    for(i <- 0 until m) {
      for(j <- 0 until l) {
        b(j)(i) = scanner.nextLong
      }
    }

    for(i <- 0 until n) {
      for(j <- 0 until l) {
        print((a(i) zip b(j)).map(t => t._1 * t._2).sum)
        if(j < l - 1) print(" ") else println()
      }
    }
  }
}

