n = int(input())

a = list(map(int, input().split()))

 

if n % 2 == 0:

    for i in reversed(range(1, n, 2)):

        print(a[i],end=" ")

    for i in range(0,n-1,2):

        print(a[i],end=" ")

elif n % 2 == 1:

    for i in reversed(range(0, n, 2)):

        print(a[i],end=" ")

    for i in range(1, n, 2):

        print(a[i],end=" ")

import sys

from collections import deque





n = int(sys.stdin.readline().strip())

A = list(map(int, sys.stdin.readline().strip().split()))



q = deque()

for i, a_i in enumerate(A):

    if i % 2 == 0:

        q.append(a_i)

    else:

        q.appendleft(a_i)



ans = list(map(str, q))

if n % 2 == 1:

    ans = ans[::-1]



print((" ".join(ans)))
n = int(input())
a = list(map(int, input().split()))
if n % 2 == 0:
    for i in reversed(range(1, n, 2)):
        print(a[i], end=" ")
    for i in range(0, n - 1, 2):
        print(a[i], end=" ")
elif n % 2 == 1:
    for i in reversed(range(0, n, 2)):
        print(a[i], end=" ")
    for i in range(1, n, 2):
        print(a[i], end=" ")

import sys
from collections import deque

n = int(sys.stdin.readline().strip())
A = list(map(int, sys.stdin.readline().strip().split()))
q = deque()
for i, a_i in enumerate(A):
    if i % 2 == 0:
        q.append(a_i)
    else:
        q.appendleft(a_i)
ans = list(map(str, q))
if n % 2 == 1:
    ans = ans[::-1]
print((" ".join(ans)))

-n = int(input()) -a = list(map(int, input().split())) -if n % 2 == 0: -    for i in reversed(range(1, n, 2)): -        print(a[i], end=" ") -    for i in range(0, n - 1, 2): -        print(a[i], end=" ") -elif n % 2 == 1: -    for i in reversed(range(0, n, 2)): -        print(a[i], end=" ") -    for i in range(1, n, 2): -        print(a[i], end=" ") +import sys +from collections import deque + +n = int(sys.stdin.readline().strip()) +A = list(map(int, sys.stdin.readline().strip().split())) +q = deque() +for i, a_i in enumerate(A): +    if i % 2 == 0: +        q.append(a_i) +    else: +        q.appendleft(a_i) +ans = list(map(str, q)) +if n % 2 == 1: +    ans = ans[::-1] +print((" ".join(ans)))