while True:
try:
length = int(input())
nums = map(int, input().split())
res = []
count = 0
for i in nums:
if i < 0:
count += 1
elif i > 0:
res.append(i)
print(count, round(sum(res)/len(res), 1))
except:
break