while(line = readline()){
    let x = Number(line)
    let y = Number(readline())
    let z = Number(readline())
    
    const arr1 = []
    const arr2 = []
    const res = new Array(x).fill().map(() => new Array(z).fill(0))
    for(let i = 0; i < x; i++){
        arr1.push(readline().split(' ').map(item => item -0))
    }
    
    for(let i = 0; i < y; i++){
        arr2.push(readline().split(' ').map(item => item -0))
    }
    
    for(let i = 0 ;i < x; i++){
        for(let j = 0; j < z; j++){
            for(let k = 0; k < y; k++){
                res[i][j] += arr1[i][k] * arr2[k][j]
            }
        }
    }
    
    res.forEach(item => console.log(item.join(' ')))
}