N = int(input())
v = list(map(int, input().split()))
vsort = sorted(v)

for i in range(N):
    ans = (vsort[0]+vsort[1])/2
    if N <= 2:
        break
    else:
        ans = (ans + vsort[i])/2
        
print(ans)