h, a = map(int, input().split()) b = 0 for i in range(h): if h > 0: h = h / a b += 1 elif h <= 0: break print(b)