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