N = int(eval(input()))

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



ans = []



l1 = A[0::2]

l2 = A[1::2]

if N % 2 == 0:

    l2 = l2[::-1]

    ans = l2+l1

else:

    l1 = l1[::-1]

    ans = l1+l2



print((" ".join(list(map(str, ans)))))

N = int(eval(input()))

A = list(input().split())



ans = []



l1 = A[0::2]

l2 = A[1::2]

if N % 2 == 0:

    l2 = l2[::-1]

    ans = l2+l1

else:

    l1 = l1[::-1]

    ans = l1+l2



print((" ".join(ans)))

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

N = int(eval(input()))
A = list(input().split())
ans = []
l1 = A[0::2]
l2 = A[1::2]
if N % 2 == 0:
    l2 = l2[::-1]
    ans = l2 + l1
else:
    l1 = l1[::-1]
    ans = l1 + l2
print((" ".join(ans)))

-A = list(map(int, input().split())) +A = list(input().split()) -print((" ".join(list(map(str, ans))))) +print((" ".join(ans)))