#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n;
  cin >> n;
  long long int count = 0;
  for (long long int i = 1; i <= (n / 2); i++) {
    if (((n - i) % i) == 0) {
      count++;
    }
  }
  cout << count;
}
