n = int(eval(input()))

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

if n % 2 == 0:

    ki = a[::2]

    gu = a[1::2]

    gu = gu[::-1]

    ans = gu+ki

else:

    ki = a[::2]

    ki = ki[::-1]

    gu = a[1::2]

    ans = ki+gu

    

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

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

if n % 2 == 0:

    ans = a[::-2]+a[::2]

else:

    ans = a[::-2]+a[1::2]

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

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

-a = list(map(str, input().split())) +a = list(input().split()) -    ki = a[::2] -    gu = a[1::2] -    gu = gu[::-1] -    ans = gu + ki +    ans = a[::-2] + a[::2] -    ki = a[::2] -    ki = ki[::-1] -    gu = a[1::2] -    ans = ki + gu +    ans = a[::-2] + a[1::2]