import sys
while True:
try:
n = int(input())
L = list(map(int, input().split()))
ZL = []
FL = []
for c in L:
if c > 0:
ZL.append(c)
elif c < 0:
FL.append(c)
print(len(FL),round(sum(ZL) / len(ZL),1))
except:
# print(sys.exc_info())
break



京公网安备 11010502036488号