n = gets.chomp.to_i c = 0 (1..Math.sqrt(n).floor).each {|i| c += (n == i * i) ? 1 : 2 if n % i == 0 } p c