#include #include #include #include #include #define maxn 1010 using namespace std; typedef long long ll; int read() { int x=0,f=1; char ch=getchar(); while(ch-'0'<0||ch-'0'>9){if(ch=='-') f=-1;ch=getchar();} while(ch-'0'>=0&&ch-'0'<=9){x=x*10+ch-'0';ch=getchar();} return x*f; } int T; int a[maxn],b[maxn]; int n; int main() { T=read(); while(T--) { n=read(); for(int i=0;ipos2) puts("1/0"); if(pos1