https://www.acmicpc.net/problem/4344
n=int(input())
for i in range(n):
arr=list(map(int,input().split()))
sum=0
count=0
for j in range(arr[0]):
sum+=arr[j+1]
ave=sum/arr[0]
for j in range(arr[0]):
if arr[j+1]>ave: count+=1
print("%.3f%c" % (count*100/arr[0],'%'))