while True:
try:
x, y, z = int(input()), int(input()), int(input())
A, B = [], []
for i in range(x):
A.append([int(i) for i in input().split()])
for j in range(y):
B.append([int(i) for i in input().split()])
C = [[0 for i in range(z)] for j in range(x)]
for i in range(x):
for j in range(y):
for k in range(z):
C[i][k] += A[i][j] * B[j][k]
for item in C:
print(' '.join([str(i) for i in item]))
except:
break