def main(): 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 for _ in range(2000): mid = (y+x)/2 if is_ok(mid): x = mid else: y = mid print(x) main()