from collections import deque
N = int(input())
v = list(map(int,input().split()))
que = deque(v)
for _ in range(N-1):
  a = que.popleft()
  b = que.popleft()
  c = (a+b)/2
  que.appendleft(c)
print(que.popleft())