#include <bits/stdc++.h>
using namespace std;
int main() {
  int number, ans = 1;
  int i;
  cin >> number;
  for (i = 2; i <= sqrt(number); i++) {
    if (number % i == 0) {
      if (number / i != i) {
        ans += 2;
      } else
        ans++;
    }
  }
  cout << ans << endl;
}
