A = []
B = []
C = []
Crow=[]
rowA,columnA,columnB=map(int,raw_input().strip().split())
for i in range(rowA):
A.append(map(int,raw_input().strip().split()))
for i in range(columnA):
B.append(map(int,raw_input().strip().split()))
for i in range(rowA):
for j in range(columnB):
s=0
for k in range(columnA):
s+=A[i][k]*B[k][j]
Crow.append(s)
C.append(Crow)
Crow=[]
for i in range(len(C)):
for j in range(len(C[0])):
print C[i][j],
print