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

A = [[int(n) for n in input().split()] for i in range(n)]

B = [[int(n) for n in input().split()] for i in range(m)]

C = [[0 for i in range(l)] for i in range(n)]

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):

    for j in range(l):

        if j == l - 1:

            print(C[i][j])

        else:

            print(C[i][j], end = " ")

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

a = [[int(num) for num in input().split()] for i in range(n)]

b = [[int(num) for num in input().split()] for i in range(m)]

c = [[0 for i in range(l)] for j in range(n)]

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):

    for j in range(l):

        if j == l - 1:

            print(c[i][j])

        else:

            print(c[i][j], end=" ")

            

n, m, l = map(int, input().split())
A = [[int(n) for n in input().split()] for i in range(n)]
B = [[int(n) for n in input().split()] for i in range(m)]
C = [[0 for i in range(l)] for i in range(n)]
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):
    for j in range(l):
        if j == l - 1:
            print(C[i][j])
        else:
            print(C[i][j], end=" ")

n, m, l = map(int, input().split())
a = [[int(num) for num in input().split()] for i in range(n)]
b = [[int(num) for num in input().split()] for i in range(m)]
c = [[0 for i in range(l)] for j in range(n)]
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):
    for j in range(l):
        if j == l - 1:
            print(c[i][j])
        else:
            print(c[i][j], end=" ")

-A = [[int(n) for n in input().split()] for i in range(n)] -B = [[int(n) for n in input().split()] for i in range(m)] -C = [[0 for i in range(l)] for i in range(n)] +a = [[int(num) for num in input().split()] for i in range(n)] +b = [[int(num) for num in input().split()] for i in range(m)] +c = [[0 for i in range(l)] for j in range(n)] -            C[i][j] += A[i][k] * B[k][j] +            c[i][j] += a[i][k] * b[k][j] -            print(C[i][j]) +            print(c[i][j]) -            print(C[i][j], end=" ") +            print(c[i][j], end=" ")