n,m,k=map(int,input().split())
a=[[0 for j in range(m)]for i in range(n) ]
for i in range(n):
s=list(map(int,input().split()))
for j in range(m):
a[i][j]=s[j]
b=[[0 for j in range(k)]for i in range(m) ]
for i in range(m):
t=list(map(int,input().split()))
for j in range(k):
b[i][j]=t[j]
c=[[0 for j in range(k)]for i in range(n) ]
for i in range(n):
for j in range(k):
for o in range(m):
c[i][j]+=a[i][o]*b[o][j]
for u in c:
for v in u[:-1]:
print(v,end=" ")
print(u[-1])