from itertools import permutations

input()

ans = 0
for tup in permutations(map(int, input().split())):
    tmp = tup[0]
    for t in tup[1:]:
        tmp = (tmp + t) / 2
    ans = max(ans, tmp)

print(ans)