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]): Seq[Int] = {
      if (a.length == 0) return b
      iter(a.tail, (b :+ a.head).reverse)
    }
    val bn = Seq[Int]()
    iter(an, bn).foreach(printf("%d ", _))
  }
}

