# No.477 MVP from decimal import Decimal import math n, k = [int(s) for s in input().split()] tmp = math.ceil(Decimal(n) / (Decimal(k + 1))) print(tmp if n % (k + 1) != 0 else tmp + 1)