#include <bits/stdc++.h>
using namespace std;
int n, s, g, a, t, l;
int main() {
  cin >> n;
  s = n;
  while (s > 0) {
    a++;
    s--;
    g = n - a;
    if (g > g / a * a) {
      l++;
    } else {
      t++;
    }
  }
  cout << t - 1;
}
