# No.477 MVP import math n, k = [int(s) for s in input().split()] print(math.ceil(n / (k + 1)))