Array.zeros = (n) => { return Array.apply(null, Array(n)).map( ()=>0 ) }
Array.prototype.max = function() { return Math.max.apply(null, this) }
Array.prototype.min = function() { return Math.min.apply(null, this) }
Array.prototype.non0length = function() { return this.reduce( (pre, current) => pre + (current != 0) ) }
var num = (val) => Array.isArray(val) ? val.map( (v)=>Number(v) ) : Number(val)
var print = console.log

if (require('os').type() != "Darwin") {
	Main(require("fs").readFileSync("/dev/stdin", "utf8"));
	return;
}

function Main(input) {

	var line = input.split("\n")
	var n = num( line[0] )
	var a = num( line[1].split(" ") )

	var b = []

	for (var l of a) {
		b.push(l)
		b = b.reverse()
	}

	print( b.join(" ") )

}


Main(`6
0 6 7 6 7 0`)
