var
a,b,x:real;
begin
read(a,b);
if (a>b) then x:=a/b+1 else
if (a=b) then x:=-100 else 
x:=(a*b-9)/3;
writeln('x = ',x);
end.