#define _USE_MATH_DEFINES//M_PI #include #include #include #include #include #include #include #define llong long long #define int(s) atoi(s.c_str()) #define dou(s) atof(s.c_str()) #define llo(s) atoll(s.c_str()) #define str(n) to_string(n) #define rep(i,a,b) for(int i=a;i>s #define input(s) getline(cin,s) #define START int main using namespace std; llong fac[510000], finv[510000], inv[510000]; void cmod_init(int p = 1000000007) { fac[0] = fac[1] = 1; finv[0] = finv[1] = 1; inv[1] = 1; for (int i = 2; i < 510000; i++) { fac[i] = fac[i - 1] * i % p; inv[i] = p - inv[p%i] * (p / i) % p; finv[i] = finv[i - 1] * inv[i] % p; } } int cmod(int n, int k, int p = 1000000007) { return fac[n] * (finv[k] * finv[n - k] % p) % p; } START() { llong a; lin(a); llong old = 0; llong ans = 0; llong count = 0; rep(i, 1, a + 1) { if (i != old AND a%i == 0) { old = i; count++; } else if (i == old) { ans++; } } cmod_init(); ans += count; cout << ans << endl; }