import itertools

n = int(input())
v = list(map(int, input().split()))

ans = 0
for vi in itertools.permutations(v):
    point = vi[0]
    for j in range(1,n):
        point = (point+vi[j])/2
    ans = max(point, ans)
    
print(ans)