N,A=int(input()),set() for i in range(1,int(N**0.5)+1): if N%i!=0:continue x,y=str(i),str(N//i) A.add(x+y) A.add(y+x) print(len(A))