a = int(input()) b = list(map(int,input().split())) c = [] d = [] for i in b: if i > 0: c.append(i) elif i < 0: d.append(i) if len(c) != 0: print(len(d),round(sum(c)/len(c),1)) elif len(c) == 0: print(len(d),0.0)