let n = Int(readLine()!)!
var array = readLine()!.characters.split{$0 == " "}.map{ Double(String($0))! }

let sorte = array.sort()
let reduced = sorte.dropFirst().reduce(sorte[0]) { ($0 + $1)/2.0 }

print(reduced)