import math EPS = 1e-10 p, q = map(int, input().split()) ok = 1.0 ng = 1.0e12 while abs(ok - ng) > EPS: mid = (ok + ng) / 2 if mid * mid <= p + q * mid * math.log(mid, 2): ok = mid else: ng = mid print(ok)