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 i=0; i<a.length; i++) {
		b.push(a[i])
		if(++i<a.length)
			b.unshift(a[i])
	}

	print( b.join(" ") )

}


Main(`4
1 2 3 4`)

Main(`3
1 2 3`)

Main(`1
1000000000`)

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