N = gets.to_i

count = 0

(N-1).times do |c|
  noko = N-c-1
	((noko** 0.5).floor).times do |a|
      if noko % (a+1) == 0
        if noko == (a+1) ** 2
          count += 1
        else
          count += 2
        end
      end
    end
end

puts count