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

A = []

B = []

for _ in range(n):

    A.append(list(map(int, input().split())))

for _ in range(m):

    B.append(list(map(int, input().split())))



for i in range(n):

    for j in range(l):

        s = 0

        for k in range(m):

            s += A[i][k] * B[k][j]

        print(s, end='')

        if j != l-1:

            print(' ', end='')

    print()

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



A = []

for i in range(n):

    row = list(map(int, input().split()))

    A.append(row)



B = []

for i in range(m):

    row = list(map(int, input().split()))

    B.append(row)



C = []

for i in range(n):

    row = []

    for j in range(l):

        sum = 0

        for k in range(m):

            sum += A[i][k] * B[k][j]

        row.append(sum)

    C.append(row)



for i in range(n):

    print((' '.join(map(str, C[i]))))



n, m, l = map(int, input().split())
A = []
B = []
for _ in range(n):
    A.append(list(map(int, input().split())))
for _ in range(m):
    B.append(list(map(int, input().split())))
for i in range(n):
    for j in range(l):
        s = 0
        for k in range(m):
            s += A[i][k] * B[k][j]
        print(s, end="")
        if j != l - 1:
            print(" ", end="")
    print()

n, m, l = list(map(int, input().split()))
A = []
for i in range(n):
    row = list(map(int, input().split()))
    A.append(row)
B = []
for i in range(m):
    row = list(map(int, input().split()))
    B.append(row)
C = []
for i in range(n):
    row = []
    for j in range(l):
        sum = 0
        for k in range(m):
            sum += A[i][k] * B[k][j]
        row.append(sum)
    C.append(row)
for i in range(n):
    print((" ".join(map(str, C[i]))))

-n, m, l = map(int, input().split()) +n, m, l = list(map(int, input().split())) +for i in range(n): +    row = list(map(int, input().split())) +    A.append(row) -for _ in range(n): -    A.append(list(map(int, input().split()))) -for _ in range(m): -    B.append(list(map(int, input().split()))) +for i in range(m): +    row = list(map(int, input().split())) +    B.append(row) +C = [] +    row = [] -        s = 0 +        sum = 0 -            s += A[i][k] * B[k][j] -        print(s, end="") -        if j != l - 1: -            print(" ", end="") -    print() +            sum += A[i][k] * B[k][j] +        row.append(sum) +    C.append(row) +for i in range(n): +    print((" ".join(map(str, C[i]))))