import math P,Q = map(int, input().split()) l,r = 1,10**18+1 for i in range(200): m = (l+r)/2 if m*m > P + (Q*m*math.log2(m)): r = m else: l = m print((l+r)/2)