user = gets.chomp.to_i list = Array.new for i in 1..user do list << i if user % i == 0 end puts list.length