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