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



A = []

for nc in range(n):

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



B = []

for mc in range(m):

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



product = [[0 for d in range(l)] for dd in range(n)]



for nc in range(n):

    for lc in range(l):

        for mc in range(m):

            product[nc][lc] += A[nc][mc] * B[mc][lc]



for r in product:

    print((' '.join([str(d) for d in r])))
(n, m, l) = [int(i) for i in input().split()]



A = []

B = []

for _ in range(n):

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

for _ in range(m):

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



for i in range(n):

    C = [0 for _ in range(l)]

    for j in range(l):

        for k in range(m):

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

    print((" ".join([str(a) for a in C])))
(n, m, l) = [int(i) for i in input().split()]
A = []
for nc in range(n):
    A.append([int(i) for i in input().split()])
B = []
for mc in range(m):
    B.append([int(i) for i in input().split()])
product = [[0 for d in range(l)] for dd in range(n)]
for nc in range(n):
    for lc in range(l):
        for mc in range(m):
            product[nc][lc] += A[nc][mc] * B[mc][lc]
for r in product:
    print((" ".join([str(d) for d in r])))

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

-for nc in range(n): +B = [] +for _ in range(n): -B = [] -for mc in range(m): +for _ in range(m): -product = [[0 for d in range(l)] for dd in range(n)] -for nc in range(n): -    for lc in range(l): -        for mc in range(m): -            product[nc][lc] += A[nc][mc] * B[mc][lc] -for r in product: -    print((" ".join([str(d) for d in r]))) +for i in range(n): +    C = [0 for _ in range(l)] +    for j in range(l): +        for k in range(m): +            C[j] += A[i][k] * B[k][j] +    print((" ".join([str(a) for a in C])))