program main
	implicit none
	integer n, i
	integer, allocatable :: a(:)
	read(*, *) n
	allocate(a(1: n))
	read(*, *) a(1: n)
	if(n == 1) then
		write(*, *)	a(1)
	else
		if(mod(n,2) == 0) then
			do i = n, 2, -2
				write(*, '(I0)', advance = 'NO') a(i)
				write(*, '(a)', advance = 'NO') ' '
			end do
			do i = 1, n-3, 2
				write(*, '(I0)', advance = 'NO') a(i)
				write(*, '(a)', advance = 'NO') ' '
			end do
			write(*, '(I0)') a(n-1)
		else
			do i = n, 1, -2
				write(*, '(I0)', advance = 'NO') a(i)
				write(*, '(a)', advance = 'NO') ' '
			end do
			do i = 2, n-3, 2
				write(*, '(I0)', advance = 'NO') a(i)
				write(*, '(a)', advance = 'NO') ' '
			end do
			write(*, '(I0)') a(n-1)
		end if
	end if
end program main