# coding:utf-8

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

ind = n.index(min(n))
POT = n.pop(ind)

for i in range(0, len(n)):
    ind = n.index(min(n))
    POT = (POT + n.pop(ind)) / 2

print(POT)