import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)
  val N = sc.nextInt
  val v = Array.fill(N)(sc.nextFloat)

  println(v.sorted.reduceLeft((a, b) => (a + b) / 2))
}
