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