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