n,m,k=list(map(int,input().split()))
a=[]
b=[]
c=[[0 for i in range(k)] for j in range(n)]
for i in range(n):
a.append(list(map(int,input().split())))
for j in range(m):
b.append(list(map(int,input().split())))
for i in range(n):
for h in range(k):
for j in range(m):
c[i][h]+=a[i][j]*b[j][h]
print(c[i][h],end=" ")
print()