from scipy.optimize import bisect def f(x): return x ** 2 - q * x * np.log2(x) - p p, q = map(int, input().split()) print(bisect(f, 1, 10 ** 15))