n = int(input())

L = [None]+list(input().split())

even = []

odd = []

if n % 2 == 0:

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

        if i % 2 == 0:

            even.append(L[i])

        else:

            odd.append(L[i])

    ans = even[::-1] + odd

else:

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

        if i % 2 == 0:

            even.append(L[i])

        else:

            odd.append(L[i])

    ans = odd[::-1] + even

for i in range(n):

    if i == n - 1:

        print(ans[i])

    else:

        print(ans[i],end=' ')

n = int(input())

L = [None]+list(input().split())

even = []

odd = []

if n % 2 == 0:

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

        if i % 2 == 0:

            even.append(L[i])

        else:

            odd.append(L[i])

    ans = even[::-1] + odd

else:

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

        if i % 2 == 0:

            even.append(L[i])

        else:

            odd.append(L[i])

    ans = odd[::-1] + even

for i in range(n-1):

    print(ans[i],end=' ')

print(ans[n-1])

n = int(input())
L = [None] + list(input().split())
even = []
odd = []
if n % 2 == 0:
    for i in range(1, 1 + n):
        if i % 2 == 0:
            even.append(L[i])
        else:
            odd.append(L[i])
    ans = even[::-1] + odd
else:
    for i in range(1, 1 + n):
        if i % 2 == 0:
            even.append(L[i])
        else:
            odd.append(L[i])
    ans = odd[::-1] + even
for i in range(n):
    if i == n - 1:
        print(ans[i])
    else:
        print(ans[i], end=" ")

n = int(input())
L = [None] + list(input().split())
even = []
odd = []
if n % 2 == 0:
    for i in range(1, 1 + n):
        if i % 2 == 0:
            even.append(L[i])
        else:
            odd.append(L[i])
    ans = even[::-1] + odd
else:
    for i in range(1, 1 + n):
        if i % 2 == 0:
            even.append(L[i])
        else:
            odd.append(L[i])
    ans = odd[::-1] + even
for i in range(n - 1):
    print(ans[i], end=" ")
print(ans[n - 1])

-for i in range(n): -    if i == n - 1: -        print(ans[i]) -    else: -        print(ans[i], end=" ") +for i in range(n - 1): +    print(ans[i], end=" ") +print(ans[n - 1])