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