require 'prime'

class Integer
  def divisor_count
    Prime.prime_division(n).map {|p, e| e + 1 }.inject(:*)
  end
end

n = gets.to_i

count = 0
for i in 1..n-1 do
  count += i.divisor_count
end

puts count
