object Main {
  def main(args: Array[String]) = {
    val sc = new java.util.Scanner(System.in)
    val n = sc.nextInt
    val an = List.fill(n)(sc.nextInt)

    def iter(a: Seq[Int], b: Seq[Int], count: Int): Seq[Int] = {
      if (a.length == 0) return b
      if (count % 2 == 0) {
        iter(a.tail, (b :+ a.head), count+1)
      } else {
        iter(a.tail, (a.head +: b), count+1)
      }
    }

    val bn = Seq[Int]()
    iter(an, bn, an.length).foreach(printf("%d ", _))
  }
}

