n = int(eval(input()))

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



if n % 2 == 1:

    print((*(a[0::2][::-1] + a[1::2])))

else:

    print((*(a[1::2][::-1] + a[0::2])))
n = int(eval(input()))

a = input().split()



if n % 2 == 1:

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

else:

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

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

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