N=gets.to_i c=0 1.upto(N**0.5){|i| c+=[i,N/i].uniq.size if (N%i).zero? } p c