const input = require('fs').readFileSync('/dev/stdin', 'utf8').split(/\n/);
 let [n, m, l] = input[0].split(' ').map(Number);
 let A = [];
 let B = [];
for (let i = 1; i < n + 1; i++) {
    let tmp = input[i].split(' ').map(Number);
    A.push(tmp);
}

for (let i = n + 1; i < n + 1 + m; i++) {
    let tmp = input[i].split(' ').map(Number);
    B.push(tmp);
}

let answer = [];
for (let k = 0; k < n; k++) {
    let Aline = A[k];
    let num = [];
    for (let i = 0; i < l; i++) {
        let sum = 0;
        for(let j = 0; j < m; j++) 
            sum += (Aline[j] * B[j][i]);
            num.push(sum);
    }
    console.log(num.join(' '));
 }
 

