n = int(input()) l = [] for i in range(1, int(n**0.5+1)): if n % i == 0: l.append(str(i) + str(n//i)) l.append(str(n//i) + str(i)) print(len(set(l)))