n = gets.chomp.to_i xNumber = 0 1.upto(n) do |i| if n % i == 0 xNumber += 1 end end puts xNumber