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