n = int(input()) ans = n f = 1 while f * f <= n: if n % f == 0: ans -= 1 if n // f != f: ans -= 1 f += 1 print(ans)