n = int(eval(input()))

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

ans = [0 for _ in range(n)]

for i in range(n):

    if n % 2 == 1:

        x = (n - 1) // 2

        if i % 2 == 0:

            ans[x - (i // 2)] = a[i]

        else:

            ans[x + ((i + 1) // 2)] = a[i]

    else:

        x = n // 2

        if i % 2 == 0:

            ans[x + (i // 2)] = a[i]

        else:

            ans[x - ((i + 1) // 2)] = a[i]

print((*ans))

n = int(eval(input()))

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

if n % 2 == 0:

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

else:

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

print((*ans))

n = int(eval(input()))
a = list(map(int, input().split()))
ans = [0 for _ in range(n)]
for i in range(n):
    if n % 2 == 1:
        x = (n - 1) // 2
        if i % 2 == 0:
            ans[x - (i // 2)] = a[i]
        else:
            ans[x + ((i + 1) // 2)] = a[i]
    else:
        x = n // 2
        if i % 2 == 0:
            ans[x + (i // 2)] = a[i]
        else:
            ans[x - ((i + 1) // 2)] = a[i]
print((*ans))

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

-ans = [0 for _ in range(n)] -for i in range(n): -    if n % 2 == 1: -        x = (n - 1) // 2 -        if i % 2 == 0: -            ans[x - (i // 2)] = a[i] -        else: -            ans[x + ((i + 1) // 2)] = a[i] -    else: -        x = n // 2 -        if i % 2 == 0: -            ans[x + (i // 2)] = a[i] -        else: -            ans[x - ((i + 1) // 2)] = a[i] +if n % 2 == 0: +    ans = a[-1::-2] + a[0::2] +else: +    ans = a[-1::-2] + a[1::2]