N = int(input()) import sys if N == 1: print(0) exit() ans = N C = 10 ** 5 t = 1 for i in range(2,C): if N % i == 0: count = 0 while N % i == 0: count += 1 N //= i t *= (count + 1) print(ans - t)