import scala.io.StdIn
import scala.collection.mutable.ListBuffer
import scala.annotation.tailrec

object Main extends App {
  val out = new java.io.PrintWriter(System.out)
  val n = StdIn.readInt
  val a = StdIn.readLine.split(" ").map(_.toInt)

  @tailrec
  def rec(b:ListBuffer[Int], isEven:Boolean, num:Iterator[Int]):Unit = {
      if(num.hasNext) {
        if(isEven) rec(b += num.next, false, num)
        else rec(num.next +=: b, true, num)
      } else return
  }

  val b = ListBuffer.empty[Int]
  val ite = a.iterator

  if((n&1) == 0) rec(b, true, ite)
  else rec(b, false, ite)

  out.println(b.mkString(" "))
  out.flush
}