n = int(input())
v = [vi for vi in input().split()]

v.sort(reverse=True)

multi = [2**x for x in range(1, n)]
multi.append(2**(n-1))

ans = 0
for i in range(n):
    ans += float(v[i]) * (1/multi[i])

print(ans)