n = int(input())
ls = list(map(int,input().split()))
ls1 = []
ls2 = []
for i in ls:
    if i == 0:
        continue
    elif i > 0:
        ls1.append(i)
    elif i < 0:
        ls2.append(i)
if len(ls1) != 0:
    print((len(ls2)),round(sum(ls1)/len(ls1),1))
else:
    print(len(ls2),0.0)