n = int(eval(input()))

a = [int(e) for e in input().split()]



ans = []

if n % 2 == 0:

    for e in a[n-1::-2]:

        ans.append(str(e))

    for e in a[0::2]:

        ans.append(str(e))

else:

    for e in a[n-1::-2]:

        ans.append(str(e))

    for e in a[1::2]:

        ans.append(str(e))

print((' '.join(ans)))
n = int(eval(input()))

a = [e for e in input().split()]



print((' '.join(a[n-1::-2] + a[n%2::2])))
n = int(eval(input()))
a = [int(e) for e in input().split()]
ans = []
if n % 2 == 0:
    for e in a[n - 1 :: -2]:
        ans.append(str(e))
    for e in a[0::2]:
        ans.append(str(e))
else:
    for e in a[n - 1 :: -2]:
        ans.append(str(e))
    for e in a[1::2]:
        ans.append(str(e))
print((" ".join(ans)))

n = int(eval(input()))
a = [e for e in input().split()]
print((" ".join(a[n - 1 :: -2] + a[n % 2 :: 2])))

-a = [int(e) for e in input().split()] -ans = [] -if n % 2 == 0: -    for e in a[n - 1 :: -2]: -        ans.append(str(e)) -    for e in a[0::2]: -        ans.append(str(e)) -else: -    for e in a[n - 1 :: -2]: -        ans.append(str(e)) -    for e in a[1::2]: -        ans.append(str(e)) -print((" ".join(ans))) +a = [e for e in input().split()] +print((" ".join(a[n - 1 :: -2] + a[n % 2 :: 2])))