const { SSL_OP_SSLEAY_080_CLIENT_DH_BUG } = require("constants");

process.stdin.resume();
process.stdin.setEncoding("utf8");

const reader = require("readline").createInterface({
  input: process.stdin,
  output: process.stdout,
});

const lines = [];

reader.on("line", (line) => {
  lines.push(line);
});

reader.on("close", () => {
  const [n, m, l] = parseLine(lines[0]);

  const A = [],
    B = [];
  for (let i = 1; i <= n; i++) {
    A.push(parseLine(lines[i]));
  }
  for (let i = 1 + n; i <= n + m; i++) {
    B.push(parseLine(lines[i]));
  }
  for (let i = 0; i < n; i++) {
    const r = [];
    for (let j = 0; j < l; j++) {
      let sum = 0;  
      for (let k = 0; k < m; k++) {
        sum += A[i][k] * B[k][j];
      }
      r.push(sum);
    }
    console.log(r.join(" "));
  }
});

function parseLine(s) {
  return s.split(" ").map((s) => Number(s));
}

