import sys
inpstr = [int(line) for line in sys.stdin]
a = 0
b = 0
c = 0
for i in inpstr:
    if i < 0:
        a += 1  # 判断负数个数
    else:
        b += i  # 0,正数总和
        c += 1
print(a)
if b == 0:  # 0不能作为分母
    print(0.0)
else:
    print("%.1f" % (b/c))