2
3
1 3 7
1
5
1/3
1/1
2
5
1 2 3 4 5
4
1 10 10 10
3/5
3/4
# -*- coding: utf-8 -*-
# UTF-8 encoding when using korean
import sys
input = sys.stdin.readline
test = int(input())
for _ in range(test):
cnt = 0
n = int(input())
record = list(map(int, input().split()))
avg = sum(record)/n
for i in record:
if i >= avg:
cnt += 1
print(cnt, "/", n, sep="")
# print("%d/%d"%(cnt, n))