object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val itemCount: Int = sc.nextInt
  val items = List.fill(itemCount)(sc.nextInt).map(_.toFloat).sorted
  val ans = items.reduceLeft((a, b) => (a + b) / 2)
  println(ans)
}