n, k = map(int, raw_input().split()) print n/(k+1) + 1 if n > k else 1