n, m, l = gets.split.map(&:to_i)
a = (0..n-1).map { gets.split.map(&:to_i) }
b = (0..m-1).map { gets.split.map(&:to_i) }
c = (0..n-1).map { (0..l-1).map { 0 } }
(0..n-1).each do |i|
  (0..l-1).each do |j|
    (0..m-1).each do |k|
      c[i][j] += a[i][k] * b[k][j]
    end
  end
end
c.each do |row|
  puts row * " "
end
