from math import log2 p,q = map(int,input().split()) def f(n) : return p+q*n*log2(n)-n*n top = 4*(10**10) bot = 1 while top - bot > 10**(-6): mid = (top + bot)/2 if f(mid) >= 0:bot = mid else:top = mid print(bot)