#小白做题 希望大佬指正
while True:
    try:
        n = int(input())
        list1 = list(map(int, input().split(' '))) #将第二行输入的数在空格处分开,每个数都转变成int类型的,最终将这些数写到列表中
        list2 = []
        list3 = []
        for i in list1: #判断数字的大小,因为0是没有用的的就直接忽略了
            if i < 0:
                list2.append(i)     
            elif i > 0:
                list3.append(i)
        sum = 0
        for i in list3:
            sum += i
        print(len(list2),end=' ')
        if len(list3) == 0:   
            print(format(0,'.1f'))  #没有整数的话,输出0.0
        else:
            print(format(sum/len(list3),'.1f'))  #将得到的平均数留有一位小数点
    except:
        break