object Main extends App {
	val N = scala.io.StdIn.readInt
	var A = scala.io.StdIn.readLine.split(" ").map(_.toLong)

	var test = List[Long]()
	val a: Int = N%2
	val b: Int = (N+1)%2

	for(i<-b until N by 2){
		test = A(i)::test
	}

	for(i<-a until N by 2){
		test = test:+A(i)
	}

	println(test.mkString(" "))

}

