while True: try: def mu(l1,l2): return sum(list(map(lambda x :x[0]*x[1],zip(l1,l2)))) x,y,z=int(input()),int(input()),int(input()) l1=[[int(i) for i in input().split()]for k in range(x)] l2=[[int(i) for i in input().split()]for k in range(y)] l3=[[v[i] for v in l2]for i in range(z)] l4=[[mu(ll,lll)for ll in l3 ] for lll in l1] for i in l4: for k in i: print(k,end=" ") print() except: break