N, X = list(map(int, input().split())) import math print(math.ceil(N // (X+1) + 1))