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