#include using namespace std; using ll=long long; int main() { ll N; cin>>N; ll an=N; for(ll i=1;i*i<=N;i++)if(N%i==0)an-=(1+(i*i!=N)); cout<