fun main(args: Array<String>) {
    val N = readLine()!!.toInt()
    readLine()!!.split(" ").map(String::toDouble).sorted()
        .reduce { acc, current ->
            (acc + current) / 2
        }.let(::println)
}