iN = int(eval(input()))

aA = [int(_) for _ in input().split()]





if iN == 1:

    print((aA[0]))

else:

    print((" " .join([str(_) for _ in aA[-1::-2] + aA[iN%2::2] ])))



iN = int(eval(input()))

aA = input().rstrip().split()





if iN == 1:

    print((aA[0]))

else:

    print((" " .join(aA[-1::-2] + aA[iN%2::2])))

iN = int(eval(input()))
aA = [int(_) for _ in input().split()]
if iN == 1:
    print((aA[0]))
else:
    print((" ".join([str(_) for _ in aA[-1::-2] + aA[iN % 2 :: 2]])))

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

-aA = [int(_) for _ in input().split()] +aA = input().rstrip().split() -    print((" ".join([str(_) for _ in aA[-1::-2] + aA[iN % 2 :: 2]]))) +    print((" ".join(aA[-1::-2] + aA[iN % 2 :: 2])))