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

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

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

for nnum in range(n):

    temp=[]

    for lnum in range(l):

        ret = 0

        for mnum in range(m):

            ret +=(A[nnum][mnum]*B[mnum][lnum])

        temp.append(ret)

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

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

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

BT = tuple(map(tuple,list(zip(*B))))

for a in A:

    temp=[]

    for b in BT:

        temp.append(sum([x*y for (x,y) in zip(a,b)]))

    print((*temp))
n, m, l = list(map(int, input().split()))
A = [tuple(map(int, input().split())) for _ in range(n)]
B = [tuple(map(int, input().split())) for _ in range(m)]
for nnum in range(n):
    temp = []
    for lnum in range(l):
        ret = 0
        for mnum in range(m):
            ret += A[nnum][mnum] * B[mnum][lnum]
        temp.append(ret)
    print((*temp))

n, m, l = list(map(int, input().split()))
A = [tuple(map(int, input().split())) for _ in range(n)]
B = [tuple(map(int, input().split())) for _ in range(m)]
BT = tuple(map(tuple, list(zip(*B))))
for a in A:
    temp = []
    for b in BT:
        temp.append(sum([x * y for (x, y) in zip(a, b)]))
    print((*temp))

-for nnum in range(n): +BT = tuple(map(tuple, list(zip(*B)))) +for a in A: -    for lnum in range(l): -        ret = 0 -        for mnum in range(m): -            ret += A[nnum][mnum] * B[mnum][lnum] -        temp.append(ret) +    for b in BT: +        temp.append(sum([x * y for (x, y) in zip(a, b)]))