N = input()
a = input().split()

a = [float(i) for i in a]#float cast
p = 1
list.sort(a)
print("初期値"+ str(a))
N = int(N)
for j in range(N-1):
    sum = a[j]
    for i in range(1):
        sum = sum + a[p]
        ans = sum / 2
        a[p] = ans
        p += 1
    list.sort(a)
    print(str(j) + "回目:" + str(a))

ans = sum / 2
print(ans)
    