x = int(input())
count = 1
avvals = [2,3,5,7,11,13,17,19,23]
for i in range(24, 1001):
for j in range(2,(i+1)//2):
if i % j == 0 and i > j:
break
if i % j == 0:
avvals.append(i)
for avval in avvals:
if x % avval == 0:
count += 2
for i in range(avvals[-1] + 1, x // avvals[-1]):
if x % i == 0:
count += 2
print(count)