while True: try: n = int(input()) list1 = list(map(int, input().split())) m =0 sum = 0 for i in range(n): if list1[i] <0: m +=1 elif list1[i] >0: sum +=list1[i] else: n -=1 print(m,round(sum/(n-m),1)) except: break