n, m, l = gets.chomp.split.map(&:to_i)

a = []
n.times do
  a << gets.chomp.split.map(&:to_i)
end

b = []
m.times do
  b << gets.chomp.split.map(&:to_i)
end

a.each do |ai|
  row = []
  b.transpose.each do |bi|
    sum = 0
    ai.zip(bi).each do |aij, bij|
      sum += aij * bij
    end
    row << sum
  end
  puts row.join(" ")
end