l=[]
res=[]
while 1:
    try:
        n=int(input())
        l.append(n)
    except:
        break
cou=0
for i in l:
    if i<0:
        cou+=1
    else:
        res.append(i)
if res:
    avg=sum(res)/len(res)
    avg=round(avg,1)
else:
    avg=0.0
print(cou)
print(avg)