#include <cstdio>#include <cmath> int main(){ int N, one; while(scanf("%d/%d\n", &one , &N) == 2) { int matches = 0; int X; for (X = N+1; X <= N*2; ++X) { if ((X*N)%(X-N) == 0) ++matches; } printf("%d\n", matches); } return 0;}