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