var input = ""
process.stdin.resume();
process.stdin.setEncoding('utf-8');
process.stdin.on('data', function(chunk) {
  input += chunk;
});
 
process.stdin.on('end', function() {
  input = input.split("\n");
  i = 0;
  var n = parseInt(input[i].split(" ")[0], 10);
  var m = parseInt(input[i].split(" ")[1], 10);
  var l = parseInt(input[i].split(" ")[2], 10);

  var a = new Array(n)
  for (i = 0; i < n; i++) {
    a[i] = input[i + 1].split(" ");
  }

  var b = new Array(m)
  for (i = 0; i < m; i++) {
    b[i] = input[i + n + 1].split(" ");
  }

  var c = new Array(l)
  for (i = 0; i < n; i++) {
    c[i] = [];
    for (j = 0; j < l; j++) {
      c[i][j] = 0;
      for (k = 0; k < m; k++) {
        c[i][j] += a[i][k] * b[k][j];
      }
    }
    console.log(c[i].join(" "));
  }
});