#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int n;
  cin >> n;
  if (n == 2 || n == 1) {
    cout << n - 1 << "\n";
    return 0;
  }
  long long int c = 0;
  for (long long int i = 1; i <= sqrt(n); i++) {
    if (n % i == 0) {
      c++;
    }
  }
  if (sqrt(n) - floor(sqrt(n)) == 0) {
    c = (2 * c) - 2;
  } else {
    c = (2 * c) - 1;
  }
  cout << c << "\n";
}
