N = int(eval(input()))

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



right = []

left = []

for i in range(N):

    if i % 2 == 0:

        right.append(A[i])

    else:

        left.append(A[i])

answer = left[::-1]

answer += right

if N%2 == 1:

  answer = answer[::-1]

print((*answer))

                
N=int(input())

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

print(*A[::-2], end=' ')

print(*A[N%2::2])

N = int(eval(input()))
A = list(map(int, input().split()))
right = []
left = []
for i in range(N):
    if i % 2 == 0:
        right.append(A[i])
    else:
        left.append(A[i])
answer = left[::-1]
answer += right
if N % 2 == 1:
    answer = answer[::-1]
print((*answer))

N = int(input())
A = list(map(int, input().split()))
print(*A[::-2], end=" ")
print(*A[N % 2 :: 2])

-N = int(eval(input())) +N = int(input()) -right = [] -left = [] -for i in range(N): -    if i % 2 == 0: -        right.append(A[i]) -    else: -        left.append(A[i]) -answer = left[::-1] -answer += right -if N % 2 == 1: -    answer = answer[::-1] -print((*answer)) +print(*A[::-2], end=" ") +print(*A[N % 2 :: 2])