fun main(args: Array<String>) = println(run {
    val n = readLine()!!.split(" ").map { it.toInt() }
    val v = readLine()!!.split(" ").map { it.toInt() }.sorted()

    var avg = v[0].toDouble()
    v.reduce { a, b -> println(avg); avg = (avg+b)/2; b }
    avg
})