while+1:a,b,c,d,e,f=map(int,input().split());print(b*f-c*e,c*d-a*f,a*e-b*d)