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

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

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

c=[[0]*l for _ 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):

 print((*c[i]))
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(s*t for s,t in zip(c,l))for l in zip(*b)]for c in a]]

n, m, l = list(map(int, input().split()))
a = [[int(_) for _ in input().split()] for i in range(n)]
b = [[int(_) for _ in input().split()] for i in range(m)]
c = [[0] * l for _ 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):
    print((*c[i]))

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(s * t for s, t in zip(c, l)) for l in zip(*b)] for c in a]]

-n, m, l = list(map(int, input().split())) -a = [[int(_) for _ in input().split()] for i in range(n)] -b = [[int(_) for _ in input().split()] for i in range(m)] -c = [[0] * l for _ 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): -    print((*c[i])) +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(s * t for s, t in zip(c, l)) for l in zip(*b)] for c in a]]