num = int(input())
lists = sorted(map(int, input().split()))[::-1]

tmp = 0.0

for _ in range(len(lists) - 1):
    x = lists.pop()
    y = lists.pop()
    lists.append((x + y) / 2)
    lists.reverse()

print(lists[0])