fun main(arr:Array<String>) {
    val n = readLine()!!.toInt()
    val list = readLine()!!.split(" ").map { it.toLong() }
    val a = mutableListOf<Long>()
    val b = mutableListOf<Long>()
    (0 until n).forEach {
        if(it % 2 == 0) {
            a.add(list[it])
        } else {
            b.add(list[it])
        }
    }
    val ans = mutableListOf<Long>()
    if(n % 2 == 0) {
        ans.addAll(b.reversed())
        ans.addAll(a)
    } else {
        ans.addAll(a.reversed())
        ans.addAll(b)
    }
    println(ans.joinToString(" "))
}