P,Q = map(int,input().split()) import math def is_ok(x): return x**2 - (P+Q*x*math.log2(x))<0 y = pow(10,20) x = 1 while y-x>0.000001: mid = (y+x)/2 if is_ok(mid): x = mid else: y = mid print(x)