import sys neg, act, s = 0, 0, 0 for line in sys.stdin: num = int(line) if num < 0: neg += 1 elif num > 0: act += 1 s += num print("{}\n{:.1f}".format(neg, s/act if act != 0 else 0))