[n, m, l] = [int(x) for x in input().split()]



A = []

B = []

C = []

counter = 0

while counter < n:

    A.append([int(x) for x in input().split()])

    counter += 1



counter = 0

while counter < m:

    B.append([int(x) for x in input().split()])

    counter += 1



counter = 0

while counter < n:

    C.append([0] * l)

    counter += 1



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 data in C:

    print((' '.join([str(x) for x in data])))
[n, m, l] = [int(x) for x in input().split()]



A = []

B = []

counter = 0

while counter < n:

    A.append([int(x) for x in input().split()])

    counter += 1



counter = 0

while counter < m:

    B.append([int(x) for x in input().split()])

    counter += 1



B = list(zip(*B))



for i in range(n):

    data = []

    for j in range(l):

        data.append(sum([x[0] * x[1] for x in zip(A[i], B[j])]))

    print((' '.join([str(x) for x in data])))
[n, m, l] = [int(x) for x in input().split()]
A = []
B = []
C = []
counter = 0
while counter < n:
    A.append([int(x) for x in input().split()])
    counter += 1
counter = 0
while counter < m:
    B.append([int(x) for x in input().split()])
    counter += 1
counter = 0
while counter < n:
    C.append([0] * l)
    counter += 1
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 data in C:
    print((" ".join([str(x) for x in data])))

[n, m, l] = [int(x) for x in input().split()]
A = []
B = []
counter = 0
while counter < n:
    A.append([int(x) for x in input().split()])
    counter += 1
counter = 0
while counter < m:
    B.append([int(x) for x in input().split()])
    counter += 1
B = list(zip(*B))
for i in range(n):
    data = []
    for j in range(l):
        data.append(sum([x[0] * x[1] for x in zip(A[i], B[j])]))
    print((" ".join([str(x) for x in data])))

-C = [] -counter = 0 -while counter < n: -    C.append([0] * l) -    counter += 1 +B = list(zip(*B)) +    data = [] -        for k in range(m): -            C[i][j] += A[i][k] * B[k][j] -for data in C: +        data.append(sum([x[0] * x[1] for x in zip(A[i], B[j])]))