N, K = gets.split.map(&:to_i) ans = N / (K + 1) + 1 puts ans