object Main extends App {
  val n = io.StdIn.readLine().toLong
  val arr = io.StdIn.readLine().split(" ")
  val str = arr.zipWithIndex.foldLeft(Seq[String]())(
    (acc, a) => if (a._2 % 2 == 0) acc ++ Seq(a._1) else Seq[String](a._1) ++ acc
  )
  println(if (n % 2 == 0) str.mkString(" ") else str.reverse.mkString(" "))
}