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

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


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

print(vn[0])