N = int(input()) count = 0 s = set([]) for i in range(1, N // 2 + 1): if N % i == 0: s.add(str(i)+str(N // i)) s.add(str(N // i) + str(i)) print(len(s))