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