n = int(eval(input()))

a_list = [int(x) for x in input().split()]

b = []

c = []

for i, a in enumerate(a_list):

    if i % 2 == 0:

        b.append(a)

    else:

        c.append(a)

if n % 2 == 0:

    d = list(reversed(c)) + b

else:

    d = list(reversed(b)) + c

print((*d))
n = int(eval(input()))

a_list = [int(x) for x in input().split()]

if n % 2 == 0:

    b_list = a_list[n-1::-2] + a_list[0::2]

else:

    b_list = a_list[n-1::-2] + a_list[1::2]

print((*b_list))
n = int(eval(input()))
a_list = [int(x) for x in input().split()]
b = []
c = []
for i, a in enumerate(a_list):
    if i % 2 == 0:
        b.append(a)
    else:
        c.append(a)
if n % 2 == 0:
    d = list(reversed(c)) + b
else:
    d = list(reversed(b)) + c
print((*d))

n = int(eval(input()))
a_list = [int(x) for x in input().split()]
if n % 2 == 0:
    b_list = a_list[n - 1 :: -2] + a_list[0::2]
else:
    b_list = a_list[n - 1 :: -2] + a_list[1::2]
print((*b_list))

-b = [] -c = [] -for i, a in enumerate(a_list): -    if i % 2 == 0: -        b.append(a) -    else: -        c.append(a) -    d = list(reversed(c)) + b +    b_list = a_list[n - 1 :: -2] + a_list[0::2] -    d = list(reversed(b)) + c -print((*d)) +    b_list = a_list[n - 1 :: -2] + a_list[1::2] +print((*b_list))