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