from math import log2 P, Q = map(int, input().split()) ok = 1 ng = 10**12+1 while ng - ok > 10**-5: mid = (ok + ng) / 2 if mid**2 <= P + Q*mid*log2(mid): ok = mid else: ng = mid print(ok)