def trial_division(n): a = [] while n % 2 == 0: a.append(2) n //= 2 f = 3 while f * f <= n: if n % f == 0: a.append(f) n //= f else: f += 2 if n != 1: a.append(n) return a N = int(input()) A = trial_division(N) D = {1:1} for a in A : if a not in D : D[a] = 1 else : D[a] += 1 SET = set() for k1 in D.keys() : k2 = N//k1 SET.add(str(k1)+str(k2)) SET.add(str(k2)+str(k1)) print(len(SET))