from math import log2 P, Q = map(int, input().split()) left = 0 right = 1e9 for _ in range(100): mid = (left + right) / 2 if (mid * mid < P + Q * mid * log2(mid)): left = mid else: right = mid print(left)