N = int(input())

A = [int(i) for i in input().split()]

if N % 2 == 0:

    ans = A[::-2]+A[::2]

else:

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

    

for i in ans:

    print(str(i)+' ', end='')

n = int(eval(input()))

a = [int(i) for i in input().split()]



if n % 2 == 0:

    a1 = a[::2]

    a2 = a[1::2]

    a2 = a2[::-1]



    ans = a2 + a1

else:

    a1 = a[::2]

    a1 = a1[::-1]

    a2 = a[1::2]



    ans = a1 + a2



ans = list(map(str, ans))

print((' '.join(ans)))
N = int(input())
A = [int(i) for i in input().split()]
if N % 2 == 0:
    ans = A[::-2] + A[::2]
else:
    ans = A[::-2] + A[1::2]
for i in ans:
    print(str(i) + " ", end="")

n = int(eval(input()))
a = [int(i) for i in input().split()]
if n % 2 == 0:
    a1 = a[::2]
    a2 = a[1::2]
    a2 = a2[::-1]
    ans = a2 + a1
else:
    a1 = a[::2]
    a1 = a1[::-1]
    a2 = a[1::2]
    ans = a1 + a2
ans = list(map(str, ans))
print((" ".join(ans)))

-N = int(input()) -A = [int(i) for i in input().split()] -if N % 2 == 0: -    ans = A[::-2] + A[::2] +n = int(eval(input())) +a = [int(i) for i in input().split()] +if n % 2 == 0: +    a1 = a[::2] +    a2 = a[1::2] +    a2 = a2[::-1] +    ans = a2 + a1 -    ans = A[::-2] + A[1::2] -for i in ans: -    print(str(i) + " ", end="") +    a1 = a[::2] +    a1 = a1[::-1] +    a2 = a[1::2] +    ans = a1 + a2 +ans = list(map(str, ans)) +print((" ".join(ans)))