n = int(eval(input()))

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

B = A[::-2]

if n%2==0:

    C = A[::2]

else:

    C = A[1::2]

B = B+C

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

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

if n%2==0:

    B = A[1::2]

    C = A[::2]

    B = B[::-1]

    print((*(B+C)))

else:

    B = A[::2]

    C = A[1::2]

    B = B[::-1]

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

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

-B = A[::-2] +    B = A[1::2] +    B = B[::-1] +    print((*(B + C))) +    B = A[::2] -B = B + C -print((*B)) +    B = B[::-1] +    print((*(B + C)))