import scala.io.StdIn.readLine

object Main extends App {
  val MOD = 1000000007
  val n = readLine.toInt
  val a = readLine.split(" ").map(_.toInt)

  val one = 0.until(n).filter(_%2==0).map(a(_))
  val two = 0.until(n).filter(_%2==1).map(a(_))

  val ans = if(n % 2 == 0) two.reverse.++(one)
  else one.reverse.++(two)

  println(ans.mkString(" "))
}