object Main {

    def main(args: Array[String]): Unit = {
        val sc = new java.util.Scanner(System.in)
        val n, m, l = sc.nextInt

        val a = Array.fill(n, m)(sc.nextLong)
        val b = Array.fill(m, l)(sc.nextLong)
        val c = Array.ofDim[Long](n, l)

        for( i <- 0 until n ) {
            for( j <- 0 until l ) {
                for( k <- 0 until m ) c(i)(j) += a(i)(k)*b(k)(j)
            }
        }

        c.foreach(x => println(x.mkString(" ")))
    }
}

