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 k in D.keys() : for j in range(1,D[k]+1) : u = k**j v = N//u if u*v != N : continue SET.add(str(u)+str(v)) SET.add(str(v)+str(u)) print(len(SET))