N, K = map(int, input().split()) if K == 0: print(N) else: x = (N - 1) // (K + 1) + 1 print(x)