from scipy.optimize import newton import math p,q=map(int,input().split()) def f(x): return q*n*math.log2(n)+p-n**2 print(newton(f,0))