import sys while True: try: n = int(input()) L = list(map(int, input().split())) ZL = [] FL = [] for c in L: if c > 0: ZL.append(c) elif c < 0: FL.append(c) print(len(FL),round(sum(ZL) / len(ZL),1)) except: # print(sys.exc_info()) break
import sys while True: try: n = int(input()) L = list(map(int, input().split())) ZL = [] FL = [] for c in L: if c > 0: ZL.append(c) elif c < 0: FL.append(c) print(len(FL),round(sum(ZL) / len(ZL),1)) except: # print(sys.exc_info()) break