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

# get matrix A
a = []
for i in 1..n
    a << gets.chomp.split(" ").map(&:to_i)
end

# get matrix B
b = Array.new(l).map{Array.new(m, "0")}
for i in 0..m - 1
    input = gets.chomp.split(" ").map(&:to_i)

    for j in 0..l - 1
        b[j][i] = input[j]
    end
end

# calculate
for i in 0..n - 1       # a row
    for j in 0..l - 1   # b row
    
        sum = 0
        
        for k in 0..m - 1   # col
            sum += a[i][k] * b[j][k]
        end
        
        print sum
        
        if j != l- 1
            print " "
        end
    end
    puts ""
end
