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