N, K = [int(i) for i in input().strip().split(" ")] print(N // (K+1) + 1)