let n = stdin.ReadLine() |> int
let vs = stdin.ReadLine().Split(' ') |> Array.map float |> Array.sort
let mutable cash = (vs.[0] + vs.[1]) / 2.
for i = 2 to n - 1 do
    cash <- (cash + vs.[i]) / 2.
printfn "%f" cash