require 'bigdecimal' n, k = gets.chomp.split.map{|v| BigDecimal(v, 12)} v = (n / (k + 1)).ceil puts v == v.to_i ? v + 1 : v