def func(lst):
fs = [i for i in lst if i<0]
zs = [i for i in lst if i>0]
avg = sum(zs)/len(zs)
print(len(fs),round(avg,1))
while 1:
try:
int(input())
lst = [int(i) for i in input().split()]
func(lst)
except:
break
fs = [i for i in lst if i<0]
zs = [i for i in lst if i>0]
avg = sum(zs)/len(zs)
print(len(fs),round(avg,1))
while 1:
try:
int(input())
lst = [int(i) for i in input().split()]
func(lst)
except:
break