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

a = [list(map(int, input().split())) for _ in range(n)]

b = [list(map(int, input().split())) for _ in range(m)]

ans = [[0 for _ in range(l)] for _ in range(n)]

for i in range(n) :

    for j in range(l) :

        for k in range(m) :

            ans[i][j] += a[i][k] * b[k][j]

    print(*ans[i], sep = ' ')

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

a = [list(map(int, input().split())) for _ in range(n)]

b = [list(map(int, input().split())) for _ in range(m)]

[print(*x) for x in [[sum(j*k for j,k in zip(x,y)) for y in zip(*b)] for x in a]]

n, m, l = map(int, input().split())
a = [list(map(int, input().split())) for _ in range(n)]
b = [list(map(int, input().split())) for _ in range(m)]
ans = [[0 for _ in range(l)] for _ in range(n)]
for i in range(n):
    for j in range(l):
        for k in range(m):
            ans[i][j] += a[i][k] * b[k][j]
    print(*ans[i], sep=" ")

n, m, l = map(int, input().split())
a = [list(map(int, input().split())) for _ in range(n)]
b = [list(map(int, input().split())) for _ in range(m)]
[print(*x) for x in [[sum(j * k for j, k in zip(x, y)) for y in zip(*b)] for x in a]]

-ans = [[0 for _ in range(l)] for _ in range(n)] -for i in range(n): -    for j in range(l): -        for k in range(m): -            ans[i][j] += a[i][k] * b[k][j] -    print(*ans[i], sep=" ") +[print(*x) for x in [[sum(j * k for j, k in zip(x, y)) for y in zip(*b)] for x in a]]