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