from math import log2 P,Q=map(int,input().split()) L,R=1,10**11 while R-L>0.00001: M=(L+R)/2 if M*M>(P+Q*M*log2(M)): R=M else: L=M print(L)