while True:
try:
n = int(input())
num_list = list(map(int, input().split()))
a, b = [], []
for i in num_list:
if i > 0:
a.append(i)
elif i < 0:
b.append(i)
print(len(b), round(sum(a) / len(a), 1))
except:
break