from functools import reduce
from decimal import Decimal

cnt = int(raw_input())
materials = [Decimal(str(m)) for m in raw_input().split()]
materials = sorted(materials)
total = reduce(lambda x, y: (x + y) / 2, materials)
print float(total)
