N=gets.to_i 1.upto(N**0.5){|i|N%i<1&&$*<<"#{i}#{N/i}"<<"#{N/i}#{i}"} p$*.uniq.size