while True:
try:
a = int(input())
b = list(map(int,input().split()))
b.sort()
while 0 in b:
b.remove(0)
k = len(b)
for i in range(len(b)):
if b[i] > 0:
k = i
break
print(k,format(sum(b[k:])/(len(b)-k),'.1f'))
except:
break