n = int(eval(input()))

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



if n%2==0:

  z = a[::-2]+a[0::2]

else:

  z = a[::-2]+a[1::2]



print((*z))
N = int(eval(input()))

A = input().split()

print((*(A[::-2]+A[N%2::2])))
n = int(eval(input()))
a = list(map(int, input().split()))
if n % 2 == 0:
    z = a[::-2] + a[0::2]
else:
    z = a[::-2] + a[1::2]
print((*z))

N = int(eval(input()))
A = input().split()
print((*(A[::-2] + A[N % 2 :: 2])))

-n = int(eval(input())) -a = list(map(int, input().split())) -if n % 2 == 0: -    z = a[::-2] + a[0::2] -else: -    z = a[::-2] + a[1::2] -print((*z)) +N = int(eval(input())) +A = input().split() +print((*(A[::-2] + A[N % 2 :: 2])))