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

d.sort(reverse=True)

S = (d[0] + d[1])/2

for i in range(2,N):
  S = (S + d[i])/2

print(S)
#print(list(map(int,input().split())).sort(reverse=True))