#include <iostream>
#include <cmath>
using namespace std;
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
int k=0;
long long n;
cin >> n;
for(int i = 1; i*i <= n; i++){
if(n % i == 0)
k += 2;
}
if(sqrt(n) / 2 == 0)
cout << k-1;
else
cout << k;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CmludCBtYWluKCl7Cglpb3M6OnN5bmNfd2l0aF9zdGRpbyhmYWxzZSk7CiAgICBjaW4udGllKDApOwoJaW50IGs9MDsKCWxvbmcgbG9uZyBuOwoJY2luID4+IG47Cglmb3IoaW50IGkgPSAxOyBpKmkgPD0gbjsgaSsrKXsKCQlpZihuICUgaSA9PSAwKQoJCWsgKz0gMjsKCX0KCWlmKHNxcnQobikgLyAyID09IDApIAoJY291dCA8PCBrLTE7CgllbHNlCgljb3V0IDw8IGs7Cn0=