n=int(input()) ans=set() for i in range(1,int(n**.5)+1): if n%i==0: a,b=str(i),str(n//i) ans.add(a+b) ans.add(b+a) print(len(ans))