h,a = map(int,input().split()) sr = [h] ans = 0 while True: if len(sr)==0: print(ans) exit() else: h_now = sr.pop(0) if h_now//a!=0: sr.append(h_now//a) sr.append(h_now//a) ans += 1