import java.util.Scanner

fun main(args:Array<String>){

    val cin = Scanner(System.`in`)
    val n = cin.nextInt()
    val m = cin.nextInt()
    val l = cin.nextInt()

    val ma = Array(n,{ Array<Long>(m,{0}) })
    val mb = Array(m,{ Array<Long>(l,{0}) })
    val mc = Array(n,{ Array<Long>(l,{0}) })

    for(i in 0..n-1){
	    for(j in 0..m-1){
	        ma[i][j] = cin.nextLong()
	    }
    }

    for(i in 0..m-1){
	    for(j in 0..l-1){
	        mb[i][j] = cin.nextLong()
	    }
    }

    for(i in 0..n-1){
	    for(j in 0..l-1){
	        for(k in 0..m-1){
    		    mc[i][j] += ma[i][k] * mb[k][j]
	        }
	    }
    }

    for(i in 0..n-1){
	    for(j in 0..l-1){
	        if(j > 0) print(" ")
	        print(mc[i][j])
	    }
	    println()
    }
}


