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