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