#include <stdio.h>
int main(){int i,j,total,n;int k;int sum=0;
scanf("%d",&total);for( i=1;i<=total;i++){ scanf("%d",&n); sum = 0; for(j=1;j<=n;j++) { scanf("%d",&k); sum += k; } sum = sum-n+1; printf("%d/n",sum);
}return 0;}