s=str import math n = int(input()) q = int(math.sqrt(n)) c = [] for i in range(1,q+1): if n%i==0: c+=[s(i)+s(n//i),s(n//i)+s(i)] print(len(set(c)))