N = int(input()) L = [] for n in range(1, int(N**0.5)+1): if N % n == 0: L += [str(n) + str(N//n)] L += [str(N//n) + str(n)] print(len(set(L)))