N = int(input())
a = map(int,input().split())
heap.heapify(a)
for i in range(N-1):
  x = heap.heappop(a)
  y = heap.heappop(a)
  z = (x+y)/2
  heap.heappush(a,z)
answer = heap.heappop(a)
print(answer)