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

	var test = List[Long]()
	var test1 = 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){
		test1 = A(i)::test1
	}

	println(test.mkString(" ") +" " + test1.reverse.mkString(" "))

}

