N, K = map(int, input().split())

ans = N // (K + 1)

if N % (K + 1) == 0:
    print(ans)
else:
    print(ans + 1)