n, k = map(int, input().split()) q, r = divmod(n, k+1) print(q+1)