#include <iostream> #include <string> #include <cstdlib> using namespace std; int main () { int n, x, y, pocet; n = x = y = pocet = 0; string input; while(cin >> input) { n = atoi(input.c_str()+2); x = n+1; if (n == 1) { cout << 1 << "\n"; continue; } while (true) { if((x*n)%(x-n)==0) { y = x*n/(x-n); if (y < x) break; pocet++; } x++; } y = 0; x = 0; cout << pocet << "\n"; pocet = 0; } return 0; }