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