# frozen_string_literal: true N, K = gets.chomp.split.map(&:to_i) puts Rational(N, K + 1).floor + 1