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