n=int(raw_input()) from math import sqrt q=int(sqrt(n)) s=0 if q*q == n: s = 1 q -= 1 for a in xrange(1,q+1): if n % a == 0: s += 2 print s