N = gets.to_i

count = 0

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

puts count