#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, g, c = -1, m;
  cin >> n;
  g = n;
  while (n > 0) {
    n--;
    m = g - n;
    if (n % m == 0) c++;
  }
  cout << c;
  return 0;
}
