#include #include #include int T; int A[1050],B[1050],n1,n2; int main(){ scanf("%d",&T); while (T--){ scanf("%d",&n1),n2=n1; for (int i=0;in2) puts("1/0"); else if (n1