from heapq import heappush, heappop

N = int(input())
V = list(map(int, input().split()))

cnt = 0
while cnt<N-1:
    x = heappop(V)
    y = heappop(V)
    heappush(V, (x+y)/float(2))
    cnt+=1

print(heappop(V))