```while True:
try:
row1, col, row2 = int(input()), int(input()), int(input())
lst1, lst2 = [], []
for i in range(row1):
lst1.append(list(map(int, input().split())))
for i in range(col):
lst2.append(list(map(int, input().split())))
res = [[0 for j in range(row2)]for i in range(row1)]
for i in range(row1):
for j in range(row2):
for k in range(col):
res[i][j] += lst1[i][k] * lst2[k][j]
print(res[i][j], end=' ')
print()
except:
break