while True: try: n=int(input()) lst=list(map(int,input().split())) fs=0 zs=0 zero=0 sum=0 for a in lst: if a==0: zero+=1 elif a<0: fs+=1 elif a>0: zs+=1 sum+=a if zs==0: print(fs,0.0) else: print(fs,format(sum/zs,'.1f')) except: break
while True: try: n=int(input()) lst=list(map(int,input().split())) fs=0 zs=0 zero=0 sum=0 for a in lst: if a==0: zero+=1 elif a<0: fs+=1 elif a>0: zs+=1 sum+=a if zs==0: print(fs,0.0) else: print(fs,format(sum/zs,'.1f')) except: break