P,Q=map(int,input().split()) import math def check(N): if N**2<=P+Q*N*math.log2(N): return True else: return False OK=1 NG=1<<62 while NG-OK>10**(-6): mid=(OK+NG)/2 if check(mid)==True: OK=mid else: NG=mid print(mid)