while True: try: n = int(input()) s = map(int,input().split()) sum = 0 count1 = 0 count2 = 0 for i in s: if i > 0: sum += i count1 += 1 elif i < 0: count2 += 1 print(count2,end = " ") if count1 == 0: print(0.0) else: print(round(sum/count1,1)) except: break