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