package m.shin; import java.util.HashSet; import java.util.Scanner; public class Con537 { public static void main(String[] args) { Scanner s = new Scanner(System.in); long n = s.nextLong(); s.close(); HashSet id = new HashSet<>(); for(long i = 1;i <= Math.sqrt(n);i++){ if(n % i == 0){ String a = String.valueOf(i); String b = String.valueOf(n / i); id.add(a.concat(b)); id.add(b.concat(a)); } } System.out.println(id.size()); } }