fun main(args: Array<String>) {
    val n = readLine()!!.toInt()
    val map = if (n and 1 == 0) {
        { i: Int -> (n shr 1) + ((i + 1) shr 1) * Math.pow(-1.0, i.toDouble()).toInt() }
    } else {
        { i: Int -> (n shr 1) - ((i + 1) shr 1) * Math.pow(-1.0, i.toDouble()).toInt() }
    }
    val b = arrayOfNulls<String>(n)
    readLine()!!.split(' ').forEachIndexed { i, a ->
        b[map(i)] = a
    }
    println(b.joinToString(" "))
}
