from math import log2 P, Q = map(int, input().split()) lo = 1 hi = 10**18 for i in range(1000): mid = (hi + lo) / 2 if mid * mid <= P + Q * mid * log2(mid): lo = mid else: hi = mid print(lo)