fl.cpp
#include <iostream>
#include <cstdio>
using namespace std;
int main ( void )
{
int n, count;
while ( scanf(" 1/%d", &n) == 1 ) {
count = 0;
int x;
for(int k=n+1;;k++)
{
if( (k*n)%(k-n)==0 )
{
count++;
x=(k*n)/(k-n);
if(k >= x)
break;
}
}
cout << count << endl;
}
return 0;
}