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