let n = Scanf.scanf " %d" (+) 0
let vs = Array.init n @@ fun _ -> Scanf.scanf " %f" (+.) 0.
let _ = Array.sort compare vs; Printf.printf "%.9f\n" @@ Array.fold_left (fun a v -> (a +. v) /. 2.) vs.(0) vs