def read_inputs
  n, m, l = gets.split(" ").map(&:to_i)
  a = (1..n).map{gets.split(" ").map(&:to_i)}
  b = (1..m).map{gets.split(" ").map(&:to_i)}
  return n, m, l, a, b
end

n, m, l, a, b = read_inputs
puts (0...n).map{|i|
  (0...l).map{|j|
    (0...m).map{|k|
      a[i][k] * b[k][j]
    }.inject(:+)
  }.join(" ")
}.join("\n")