N = int(input())
v = list(map(int, input().split()))

def saiki(*v):
    #print(*v)
    if len(v) == 1:
        return v
    elif len(v) == 2:
        return sum(v)/2
    else:
        return (saiki(*v[1:]) + v[0])/2

print(saiki(*v))