from math import isqrt n = int(input()); ans = n for i in range(1,isqrt(n)+1): if n%i==0: ans -= 2 if i*i==n: ans += 1 print(ans)