def jzcf(jz1,jz2):
hang=len(jz1)
lie=len(jz2[0])
res=[]
for i in range(hang):
res.append([])
for i in range(hang):
for j in range(lie):
s=0
for k in range(len(jz1[0])):
s+=jz1[i][k]*jz2[k][j]
res[i].append(s)
return res
(n,m,k)=map(int,input().split())
a=[]
b=[]
for i in range(n):
a.append(list(map(int,input().split())))
for i in range(m):
b.append(list(map(int,input().split())))
c=jzcf(a,b)
for i in range(n):
for j in range(k):
print(c[i][j],end=' ')
print()