import java.io.*; import java.util.*; public class Main_yukicoder537 { private static Scanner sc; private static Printer pr; private static void solve() { long n = sc.nextLong(); Set hs = new HashSet<>(); for (long i = 1; i * i <= n; i++) { if (n % i == 0) { String tmp = Long.toString(i) + Long.toString(n / i); hs.add(tmp); tmp = Long.toString(n / i) + Long.toString(i); hs.add(tmp); } } pr.println(hs.size()); } // --------------------------------------------------- public static void main(String[] args) { sc = new Scanner(System.in); pr = new Printer(System.out); solve(); pr.close(); sc.close(); } private static class Printer extends PrintWriter { Printer(PrintStream out) { super(out); } } }