parseInt(x) = parse(Int, x)
parseMap(x::Array{SubString{String},1}) = map(parseInt, x)
function main()
    n=parseInt(readline())
    v=reverse(parseMap(split(readline())))
    ans=v[1]
    for i in v
        ans=(ans+i)/2
    end
    println(ans)
end
main()