N = int(input())

#v = []#[500, 300, 200]
v = [float(s) for s in raw_input().split()]

for i in range(len(v) - 1):
    v.sort(reverse=True)
    _mean = (v.pop() + v.pop())/2.0
    v.append(_mean)

print(v[0])