while True:
    try:
        k = input()
        count_f = 0
        input_list = [i for i in map(int,input().split())]
        pos_list = []
        for i in input_list:
            if i < 0 :
                count_f += 1
            elif i > 0:
                pos_list.append(i)
        print('{} {:.1f}'.format(count_f,(sum(pos_list)/len(pos_list))))
    except:
        break