from collections import deque



n = int(eval(input()))

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

b = deque()



if n % 2 == 1:

    for i in range(n):

        if i % 2 == 0:

            b.appendleft(a.popleft())

        else:

            b.append(a.popleft())

else:

    for i in range(n):

        if i % 2 == 0:

            b.append(a.popleft())

        else:

            b.appendleft(a.popleft())



print((*b))
n = int(eval(input()))

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

a_odd = a[0::2]

a_even = a[1::2]

if n % 2 == 0:

    print((*(a_even[::-1] + a_odd)))

else:

    print((*(a_odd[::-1] + a_even)))
from collections import deque

n = int(eval(input()))
a = deque(list(map(int, input().split())))
b = deque()
if n % 2 == 1:
    for i in range(n):
        if i % 2 == 0:
            b.appendleft(a.popleft())
        else:
            b.append(a.popleft())
else:
    for i in range(n):
        if i % 2 == 0:
            b.append(a.popleft())
        else:
            b.appendleft(a.popleft())
print((*b))

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

-from collections import deque - -a = deque(list(map(int, input().split()))) -b = deque() -if n % 2 == 1: -    for i in range(n): -        if i % 2 == 0: -            b.appendleft(a.popleft()) -        else: -            b.append(a.popleft()) +a = list(map(int, input().split())) +a_odd = a[0::2] +a_even = a[1::2] +if n % 2 == 0: +    print((*(a_even[::-1] + a_odd))) -    for i in range(n): -        if i % 2 == 0: -            b.append(a.popleft()) -        else: -            b.appendleft(a.popleft()) -print((*b)) +    print((*(a_odd[::-1] + a_even)))