#include <stdio.h> int main() { int n = 0, x = 0, poc = 0, y = 0; while(1) { scanf("1/%d\n", &n); x = n; poc = 0; do { x++; y = (-n * x) / (n - x); if((-n * x) % (n - x) == 0) poc++; }while(x <= y); printf("%d\n", poc); if(feof(stdin)) break; } return 0;}