function main(input) {
    let args = input.split("\n"),
    num = args[0].split(" ").map(Number)
    n = num[0], m = num[1], l = num[2]
    args.shift()
    
    const a = new Array(n)
    for(let y = 0; y < n; y++) {
        a[y] = args[0].split(" ").map(Number)
        args.shift()
    }
    
    const b = new Array(m)
    for(let y = 0; y < m; y++) {
        b[y] = args[0].split(" ").map(Number)
        args.shift()
    }
    
    const c = new Array(n);
    for(let y = 0; y < n; y++) {
        c[y] = new Array(l).fill(0);
    }
    
    for (let i = 0; i < n; i++) {
        for (let j = 0; j < m; j++) {
            for (let k = 0; k < l; k++) {
                c[i][k] += a[i][j] * b[j][k]
            }
        }
    }
    
    for (let i = 0; i < n; i++) {
        for (let j = 0; j < l; j++) {
            process.stdout.write(String(c[i][j]))
            if (j + 1 != l) process.stdout.write(" ")
        }
        console.log()
    }
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
