require "bigdecimal" N, K = gets.split.map(&:to_i) res = (N / BigDecimal(K + 1)).ceil + (N % (K + 1) == 0 ? 1 : 0) puts res