number = gets.chomp.to_i list = Array.new for val in 1..number do list << val if number % val == 0 end for val in list do if list.include?(number / val) puts "#{number / val}#{val}" end end p list puts list.length