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