N = gets.to_i

count = 0

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

puts count