Program Zif_4_12_G(input,output);
VAr a,b,r,x,y,d:real;
BEgin
     read(a,b,r);
     d:=r*r+sqrt(a*r)-b*b;
     if d<0 then writeln('not cross');
     if d=0 then
     begin
          x:=-a*b/(1+a*a);
          y:=a*x+b;
          writeln(x:0:5,',',y:0:5)
     end;
     if d>0 then
     begin
          x:=(-a*b+sqrt(d))/(1+a*a);
          y:=a*x+b;
          writeln(x:0:5,',',y:0:5);
          x:=(-a*b-sqrt(d))/(1+a*a);
          y:=a*x+b;
          writeln(x:0:5,',',y:0:5)
     end;
End.