while True:
    try:
        n,l1 = int(input),map(int,input().split())
        a,b,s = 0,0,0
        for i in l1:
            if i < 0: a += 1 elif i > 0:
                b += 1
                s += i
        print(a,round(s / b,1))
    except:
        break