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