#include <bits/stdc++.h>
int main() {
  int n, i, j, k, l, count = 0;
  scanf("%d", &n);
  l = (n / 2) + 1;
  for (i = 2; i < l; i++) {
    j = n - i;
    if (j % i == 0) ++count;
  }
  printf("%d\n", count + 1);
  return 0;
}
