n = int(input())
L = []
value = 0
L = list(map(int, input().split()))

L2 = sorted(L, reverse=True)
value = (L2[n - 2] + L2[n - 1]) / 2
for j in range(n - 2):
    value = (L2[j] + value) / 2

print(value)
