b = []
c = 0
while True:
try:
n = int(input())
ls = list(map(int,input().split()))
for a in ls:
if a > 0:
b.append(a)
if a < 0:
c += 1
except:
break
print(c,end=' ')
if len(b) == 0:
print(0.0)
else:
print(round(sum(b) / len(b), 1))



京公网安备 11010502036488号