#include int main(void) { long n, s = 0; scanf("%ld", &n); for (long i = 1; i < n; i++) if (n%i == 0) s++; printf("%d\n", s); return 0; }