N = int(input()) S = set() for i in range(1, int(N ** 0.5) + 1): if N % i == 0: a = str(i) b = str(N // i) S.add(a + b) S.add(b + a) print(len(S))