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