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

def merge(x, y):
    return (x + y) / 2


for _ in range(n-1):
    sorted(vn)
    x = vn.pop()
    y = vn.pop()
    vn.append(merge(x, y))

print(vn[0])