import math n, m = map(int, input().split()) print(math.ceil(n / (m + 1)))