while 1:a,b,c,d,e,f=map(int,input()[::2]);print(b*f-c*e,c*d-a*f,a*e-b*d)