Program Zif_3_28_g(input,output);
Var a1,a2,b1,b2,c1,c2:real;
begin
     read(a1,b1,c1,a2,b2,c2);
     write('x=',(b1*c2-b2*c1)/(b1*a2-b2*a1):0:5,' y=',(a1*c2-a2*c1)/(b2*a1-b1*a2):0:5)
end.