import java.util.HashSet; import java.util.Scanner; import java.util.Set; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); long N = scan.nextLong(); scan.close(); Set hash_set = new HashSet(); int k = (int)Math.sqrt(N); for(int i = 1; i <= k; i++) { if(N % i == 0) { long t = N / i; String s1 = Integer.toString(i) + Long.toString(t); String s2 = Long.toString(t) + Integer.toString(i); hash_set.add(s1); hash_set.add(s2); } } System.out.println(hash_set.size()); } }