n = int(input()) nums = list(map(int, input().split(" "))) neg = 0 act = 0 s = 0 for num in nums: if num < 0: neg += 1 elif num > 0: act += 1 s += num print("{} {:.1f}".format(neg, s/act if act > 0 else 0))