program pil_3_28_d(input,output);
var
   a1, a2, b1, b2, c1, c2 : real;
   r1, r2 : real;
   det : real;
begin
	write('Input factors a1, b1, c1, a2, b2, c2');
  read(a1, b1, c1, a2, b2, c2);
  det := a1*b2 - b1*a2;
	r1 := (c1*b2-b1*c2) / det;
  r2 := (a1*c2-c1*a2) / det;
  WriteLn('Results are ', r1:1:2, ' and ', r2:1:2);
end.