'use strict'

function main(input) {
	input = input.split('\n').map(v => v.split(' ').map(v => ~~v))
	const n = input[0][0]
	const nums = input[1]

	let store = []
	if (n % 2 == 0) {
		//
		for (let i = 0; i < n; i++) {
			if (i % 2 == 0) {
				store.push(nums[i])
			} else {
				store.unshift(nums[i])
			}
		}
	} else {
		for (let i = 0; i < n; i++) {
			if (i % 2 == 0) {
				store.unshift(nums[i])
			} else {
				store.push(nums[i])
			}
		}
	}
	const ans = store.join(' ')

	console.log(ans)
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'))