def make_divisors(n): lower_divisors , upper_divisors = [], [] i = 1 while i*i <= n: if n % i == 0: lower_divisors.append(i) if i != n // i: upper_divisors.append(n//i) i += 1 return lower_divisors + upper_divisors[::-1] n=int(input()) l=make_divisors(n) ans=0 l2,l3=[],[] for x in l: if str(x)!=str(n//x): l2.append(x) else: l3.append(str(x)) print(len(l2)+len(l3))