n=int(input()) i=1 s=[] while i*i<=n: if n%i==0: s.append(str(i)+str(n//i)) s.append(str(n//i)+str(i)) i+=1 print(len(set(s)))