import collections



N = int(eval(input()))

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

ans = collections.deque()

for i in range(N):

    if N % 2 == 0:

        if i % 2 == 0:

            ans.append(A[i])

        else:

            ans.appendleft(A[i])

    else:

        if i % 2 == 0:

            ans.appendleft(A[i])

        else:

            ans.append(A[i])

print((*ans))

from collections import deque



n = int(eval(input()))

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

b_li = deque()

for i in range(len(a_li)):

    if i % 2 == 0:

        b_li.append(a_li[i])

    else:

        b_li.appendleft(a_li[i])



if len(a_li) % 2 == 0:

    print((*b_li))

else:

    print((*list(b_li)[::-1]))

import collections

N = int(eval(input()))
A = list(map(int, input().split()))
ans = collections.deque()
for i in range(N):
    if N % 2 == 0:
        if i % 2 == 0:
            ans.append(A[i])
        else:
            ans.appendleft(A[i])
    else:
        if i % 2 == 0:
            ans.appendleft(A[i])
        else:
            ans.append(A[i])
print((*ans))

from collections import deque

n = int(eval(input()))
a_li = list(map(int, input().split()))
b_li = deque()
for i in range(len(a_li)):
    if i % 2 == 0:
        b_li.append(a_li[i])
    else:
        b_li.appendleft(a_li[i])
if len(a_li) % 2 == 0:
    print((*b_li))
else:
    print((*list(b_li)[::-1]))

-import collections +from collections import deque -N = int(eval(input())) -A = list(map(int, input().split())) -ans = collections.deque() -for i in range(N): -    if N % 2 == 0: -        if i % 2 == 0: -            ans.append(A[i]) -        else: -            ans.appendleft(A[i]) +n = int(eval(input())) +a_li = list(map(int, input().split())) +b_li = deque() +for i in range(len(a_li)): +    if i % 2 == 0: +        b_li.append(a_li[i]) -        if i % 2 == 0: -            ans.appendleft(A[i]) -        else: -            ans.append(A[i]) -print((*ans)) +        b_li.appendleft(a_li[i]) +if len(a_li) % 2 == 0: +    print((*b_li)) +else: +    print((*list(b_li)[::-1]))