object Main extends App{
  import scala.io.StdIn.readLine
  
  val n = readLine
  val values = readLine.split(" ").map(_.toDouble).sorted
  
  println(values.reduceLeft( (a,b) => (a + b) / 2 ).toString)
}
