object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val n = sc.nextInt()
  val a = List.fill(n)(sc.nextInt())

  val aOdd = a.zipWithIndex.filter(_._2 % 2 == 0).map(_._1)
  val aEven = a.zipWithIndex.filter(_._2 % 2 == 1).map(_._1)
  if (n == 1) {
    println(a.head)
  } else if (n % 2 == 0) {
    println(s"${aEven.reverse.mkString(" ")} ${aOdd.mkString(" ")}")
  } else {
    println(s"${aOdd.reverse.mkString(" ")} ${aEven.mkString(" ")}")
  }
}
