N = int(eval(input()))

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



ans = list(reversed(src[1::2])) + src[::2]

if N%2:

    ans.reverse()

print((*ans))
from collections import deque

N = int(eval(input()))

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



b = deque()

for i,a in enumerate(A):

    if i%2:

        b.appendleft(a)

    else:

        b.append(a)



if N%2:

    print((*reversed(b)))

else:

    print((*b))
N = int(eval(input()))
src = list(map(int, input().split()))
ans = list(reversed(src[1::2])) + src[::2]
if N % 2:
    ans.reverse()
print((*ans))

from collections import deque

N = int(eval(input()))
A = list(map(int, input().split()))
b = deque()
for i, a in enumerate(A):
    if i % 2:
        b.appendleft(a)
    else:
        b.append(a)
if N % 2:
    print((*reversed(b)))
else:
    print((*b))

+from collections import deque + -src = list(map(int, input().split())) -ans = list(reversed(src[1::2])) + src[::2] +A = list(map(int, input().split())) +b = deque() +for i, a in enumerate(A): +    if i % 2: +        b.appendleft(a) +    else: +        b.append(a) -    ans.reverse() -print((*ans)) +    print((*reversed(b))) +else: +    print((*b))