n = int(eval(input()))

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

a_odd = a[0::2]

a_even = a[1::2]

if n % 2 == 0:

    print((*(a_even[::-1] + a_odd)))

else:

    print((*(a_odd[::-1] + a_even)))
n = int(eval(input()))

a = list(input().split())

if n % 2 == 0:

    print((" ".join(a[1::2][::-1] + a[0::2])))

else:

    print((" ".join(a[0::2][::-1] + a[1::2])))
n = int(eval(input()))
a = list(map(int, input().split()))
a_odd = a[0::2]
a_even = a[1::2]
if n % 2 == 0:
    print((*(a_even[::-1] + a_odd)))
else:
    print((*(a_odd[::-1] + a_even)))

n = int(eval(input()))
a = list(input().split())
if n % 2 == 0:
    print((" ".join(a[1::2][::-1] + a[0::2])))
else:
    print((" ".join(a[0::2][::-1] + a[1::2])))

-a = list(map(int, input().split())) -a_odd = a[0::2] -a_even = a[1::2] +a = list(input().split()) -    print((*(a_even[::-1] + a_odd))) +    print((" ".join(a[1::2][::-1] + a[0::2]))) -    print((*(a_odd[::-1] + a_even))) +    print((" ".join(a[0::2][::-1] + a[1::2])))