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)=>parseInt(v, 10) ) : parseInt(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 i=0; i<n; i++) {
		b.push(a[i])
		if(++i < n)
			b.unshift(a[i])
	}

	var s = ""

	for(var i=0; i<n; i++) {
		s += b[i] + " "
	}

	print( s.slice(0, -1) )

}


Main(`4
1 2 3 4`)

Main(`3
1 2 3`)

Main(`1
1000000000`)

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