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); int n = s.nextInt(); s.close(); HashSet id = new HashSet<>(); for(int i = 1;i <= Math.sqrt(n);i++){ if(n % i == 0){ String a = Integer.toString(i); String b = Integer.toString(n / i); id.add(a.concat(b)); id.add(b.concat(a)); } } System.out.println(id.size()); } }