n = int(input())
list_a = list(map(int,input().split()))

list_a.sort()

for m in range(n - 1):
    new = 0
    new += (list_a[0] + list_a[1]) / 2
    print(new)
    del list_a[0:2]
    print(list_a)
    list_a.append(new)
    print(list_a)
    list_a.sort()

print(list_a[0])
