import math p,q = map(int, input().split()) ok = 1 ng = 10 ** 30 + 1 while abs(ok-ng) > 10 ** (-8): mid = (ok+ng)/2 if mid * (mid - q*math.log2(mid)) <= p: ok = mid else: ng = mid print(ok)