N = int(eval(input()))

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



index = []

if N % 2 == 0:

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

        index.append(i)

    for j in range(0, N - 1, 2):

        index.append(j)

else:

    for i in range(N - 1, -1, -2):

        index.append(i)

    for j in range(1, N - 1, 2):

        index.append(j)



B = []

for i in index:

    B.append(str(A[i]))

print((' '.join(B)))

N = int(eval(input()))

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



B = A[::2][::-1] + A[1::2]

if N % 2 == 0:

    B = B[::-1]

print((' '.join(B)))
N = int(eval(input()))
A = list(map(int, input().split()))
index = []
if N % 2 == 0:
    for i in range(N - 1, 0, -2):
        index.append(i)
    for j in range(0, N - 1, 2):
        index.append(j)
else:
    for i in range(N - 1, -1, -2):
        index.append(i)
    for j in range(1, N - 1, 2):
        index.append(j)
B = []
for i in index:
    B.append(str(A[i]))
print((" ".join(B)))

N = int(eval(input()))
A = list(map(str, input().split()))
B = A[::2][::-1] + A[1::2]
if N % 2 == 0:
    B = B[::-1]
print((" ".join(B)))

-A = list(map(int, input().split())) -index = [] +A = list(map(str, input().split())) +B = A[::2][::-1] + A[1::2] -    for i in range(N - 1, 0, -2): -        index.append(i) -    for j in range(0, N - 1, 2): -        index.append(j) -else: -    for i in range(N - 1, -1, -2): -        index.append(i) -    for j in range(1, N - 1, 2): -        index.append(j) -B = [] -for i in index: -    B.append(str(A[i])) +    B = B[::-1]