import math # p, q = map(int, input().split()) # def f(x): return x * x - q * x * math.log2(x) - p def fprime(x): return 2 * x - q * math.log2(x) - q / math.log(2) def newton(x_0, eps): x = x_0 while True: x_prev = x x = x_prev - f(x) / fprime(x) if abs(x - x_prev) < eps: break return x x0 = 1.0 while True: x0 *= 10 if f(x0) > 0: break eps = 1e-6 print(newton(x0, eps))