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

e=[input().split()for _ in[0]*(n+m)]

for c in e[:n]:print((*[sum(int(s)*int(t)for s,t in zip(c,l))for l in zip(*e[n:])]))

import sys

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

e=[list(map(int,e.split()))for e in sys.stdin]

for c in e[:n]:print((*[sum(s*t for s,t in zip(c,l))for l in zip(*e[n:])]))

n, m, l = list(map(int, input().split()))
e = [input().split() for _ in [0] * (n + m)]
for c in e[:n]:
    print((*[sum(int(s) * int(t) for s, t in zip(c, l)) for l in zip(*e[n:])]))

import sys

n, m, l = list(map(int, input().split()))
e = [list(map(int, e.split())) for e in sys.stdin]
for c in e[:n]:
    print((*[sum(s * t for s, t in zip(c, l)) for l in zip(*e[n:])]))

+import sys + -e = [input().split() for _ in [0] * (n + m)] +e = [list(map(int, e.split())) for e in sys.stdin] -    print((*[sum(int(s) * int(t) for s, t in zip(c, l)) for l in zip(*e[n:])])) +    print((*[sum(s * t for s, t in zip(c, l)) for l in zip(*e[n:])]))