fun main(args: Array<String>) {
    abc066c()
}

// 奇数の場合は奇数indexが右、そうでない場合は逆
fun abc066c() {
    val n = readLine()!!.toInt()
    val aList = readLine()!!.split(" ").map { it.toLong() }

    val (evens, odds) = aList.mapIndexed { index, l -> Pair(index, l) }.partition { it.first % 2 == 0 }

    val aListSizeIsEven = aList.size % 2 == 0
    val left = if (aListSizeIsEven) odds.reversed() else evens.reversed()
    val right = if (aListSizeIsEven) evens else odds

    val answer = (left + right).map { it.second }

    println(answer.joinToString(separator = " "))
}
