PROGRAM resh(input, output);
var a1,a2,b1,b2,c1,c2,x,y:real;
begin write('vvedite koef. 1go yravneniya'); read(a1,b1,c1);
      write('vvedite koef. 2go yravneniya'); read(a2,b2,c2);
      x:=(c1*b2-c2*b1)/(a1*b2-a2*b1);
      y:=(c1*a2-c2*a1)/(b1*a2-b2*a1);
      writeln('x=',x:1:4,' y=',y:1:4)
end.