n=int(input("Nhập một số tự nhiên n: "))
count=0
for k in range(1,n):
	if n%k ==0:
		count = count+1
print(count)