n, m, l = list(map(int, input().split()))



a = [0]*n

b = [0]*m

c = [[0 for col in range(l)] for row in range(n)]



for i in range(n):

    a[i] = list(map(int,input().split()))



for i in range(m):

    b[i] = list(map(int,input().split()))





for i in range(n):

    for j in range(l):

        c[i][j] = sum([a[i][k]*b[k][j] for k in range(m)])

#        for k in range(m):

#            c[i][j] += a[i][k]*b[k][j]

    print((*c[i]))
n, m, l = list(map(int, input().split()))



a = [0]*n

b = [0]*m

c = [[0 for col in range(l)] for row in range(n)]



for i in range(n):

    a[i] = list(map(int,input().split()))



for i in range(m):

    b[i] = list(map(int,input().split()))



#for i in range(n):

#    for j in range(l):

#        for k in range(m):

#            c[i][j] += a[i][k]*b[k][j]

for i in range(n):

    c[i] = [sum([a[i][k]*b[k][j] for k in range(m)]) for j in range(l)]

    print((*c[i]))
n, m, l = list(map(int, input().split()))
a = [0] * n
b = [0] * m
c = [[0 for col in range(l)] for row in range(n)]
for i in range(n):
    a[i] = list(map(int, input().split()))
for i in range(m):
    b[i] = list(map(int, input().split()))
for i in range(n):
    for j in range(l):
        c[i][j] = sum([a[i][k] * b[k][j] for k in range(m)])
    #        for k in range(m):
    #            c[i][j] += a[i][k]*b[k][j]
    print((*c[i]))

n, m, l = list(map(int, input().split()))
a = [0] * n
b = [0] * m
c = [[0 for col in range(l)] for row in range(n)]
for i in range(n):
    a[i] = list(map(int, input().split()))
for i in range(m):
    b[i] = list(map(int, input().split()))
# for i in range(n):
#    for j in range(l):
#        for k in range(m):
#            c[i][j] += a[i][k]*b[k][j]
for i in range(n):
    c[i] = [sum([a[i][k] * b[k][j] for k in range(m)]) for j in range(l)]
    print((*c[i]))

+# for i in range(n): +#    for j in range(l): +#        for k in range(m): +#            c[i][j] += a[i][k]*b[k][j] -    for j in range(l): -        c[i][j] = sum([a[i][k] * b[k][j] for k in range(m)]) -    #        for k in range(m): -    #            c[i][j] += a[i][k]*b[k][j] +    c[i] = [sum([a[i][k] * b[k][j] for k in range(m)]) for j in range(l)]