n,k=gets.chomp.split(" ").map(&:to_i) a=n/(k+1)+1 puts a