# ABC 138 C
N =int(input())
V = sorted([int(i) for i in input().split()])
ans = 0

for i,v in enumerate(V):
    if i<2:
        ans +=v/(2**(N-1))
    else:
        ans += v/(2**(i-1))
print(ans)
    