P,Q=map(int, input().split()) from math import log2 l=1 r=10**11 while r-l>0.000009: m=(l+r)/2 if m*m>P+Q*m*log2(m): r=m else: l=m print(l)