N=int(eval(input()))

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

print((*(A[::-2]+A[N%2::2])))
from collections import deque

n=int(eval(input()))

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

b=deque()

for i in range(n):

    if i%2==0:

        b.append(a[i])

    else:

        b.appendleft(a[i])

if n%2==0:

    print((*b))

else:

    print((*deque(reversed(b))))
N = int(eval(input()))
A = list(map(int, input().split()))
print((*(A[::-2] + A[N % 2 :: 2])))

from collections import deque

n = int(eval(input()))
a = list(map(int, input().split()))
b = deque()
for i in range(n):
    if i % 2 == 0:
        b.append(a[i])
    else:
        b.appendleft(a[i])
if n % 2 == 0:
    print((*b))
else:
    print((*deque(reversed(b))))

-N = int(eval(input())) -A = list(map(int, input().split())) -print((*(A[::-2] + A[N % 2 :: 2]))) +from collections import deque + +n = int(eval(input())) +a = list(map(int, input().split())) +b = deque() +for i in range(n): +    if i % 2 == 0: +        b.append(a[i]) +    else: +        b.appendleft(a[i]) +if n % 2 == 0: +    print((*b)) +else: +    print((*deque(reversed(b))))