p,q=map(int,input().split()) l=1 r=10**16 from math import log2 eps=10**(-7) for i in range(0,1010): md=(l+r)/2 if md*md<=p+q*md*log2(md)+eps: l=md else: r=md print(l)