from math import sqrt N = int(input()) count = 0 sList = [] for i in range(1,int(sqrt(N))+1): if N%i == 0: s1 = str(i)+str(N//i) s2 = str(N//i)+str(i) sList.append(s1) sList.append(s2) sSetList = list(set(sList)) count = len(sSetList) print(count)