p = [] n = [] while True: try: num = int(input()) if num < 0: n.append(num) else: p.append(num) except: print(len(n)) if len(p) == 0: print(0.0) else: print('%.1f'%(sum(p)/len(p))) break
p = [] n = [] while True: try: num = int(input()) if num < 0: n.append(num) else: p.append(num) except: print(len(n)) if len(p) == 0: print(0.0) else: print('%.1f'%(sum(p)/len(p))) break