a,b,c = map(int,input().split()) d,e,f = map(int,input().split()) print(b*f-c*e, c*d-a*f, a*e-b*d)