#include <iostream> int a, c; int main(){ scanf("%d", &a); for (int i = 1; i <= 1000; i ++){ if (a % i == 0) c ++; } printf("%d", (c/2)); return 0; }