import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { long n = sc.nextLong(); Set set = new HashSet<>(); for (long i=1; i<=Math.sqrt(n); i++) { if (n%i==0) { StringBuilder sb = new StringBuilder(); sb.append(String.valueOf(i)); sb.append(String.valueOf(n/i)); set.add(sb.toString()); StringBuilder sb2 = new StringBuilder(); sb2.append(String.valueOf(n/i)); sb2.append(String.valueOf(i)); set.add(sb2.toString()); } } System.out.println(set.size()); } }