a = int(input()) b, *args = map(int, input().split()) list1 = [b, *args] list2 = [] list3 = [] for i in list1: if i < 0: list2.append(i) cc = len(list2) for j in list1: if j > 0: list3.append(j) ss = sum(list3) ll = len(list3) if ss !=0: print(cc,round(ss/ll,1)) else: print(cc,0.0)