from math import log2 p, q = map(int, input().split()) left = 0 right = 1 << 63 for _ in range(10000): mid = (left + right) / 2 t1 = mid**2 t2 = p + q * mid * log2(mid) if t1 <= t2: left = mid else: right = mid print(left)