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