from collections import deque

def solve():

    n = int(input())

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



    deq = deque()

    for i in range(n):

        if i % 2 == 0:

            deq.append(a[i])

        else:

            deq.appendleft(a[i])

    

    ans = list(deq)

    if n % 2 == 0:

        print(*ans, sep=' ')

    else:

        print(*ans[::-1], sep=' ')



if __name__ == '__main__':

    solve()

from collections import deque

def solve():

    n = int(eval(input()))

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



    q = deque()

    for i in range(n):

        if i % 2 == 0:

            q.append(A[i])

        else:

            q.appendleft(A[i])

    

    ans = list(q)

    if n % 2 != 0:

        ans.reverse()

    

    print((*ans))



if __name__ == '__main__':

    solve()
from collections import deque


def solve():
    n = int(input())
    a = list(map(int, input().split()))
    deq = deque()
    for i in range(n):
        if i % 2 == 0:
            deq.append(a[i])
        else:
            deq.appendleft(a[i])
    ans = list(deq)
    if n % 2 == 0:
        print(*ans, sep=" ")
    else:
        print(*ans[::-1], sep=" ")


if __name__ == "__main__":
    solve()

from collections import deque


def solve():
    n = int(eval(input()))
    A = list(map(int, input().split()))
    q = deque()
    for i in range(n):
        if i % 2 == 0:
            q.append(A[i])
        else:
            q.appendleft(A[i])
    ans = list(q)
    if n % 2 != 0:
        ans.reverse()
    print((*ans))


if __name__ == "__main__":
    solve()

-    n = int(input()) -    a = list(map(int, input().split())) -    deq = deque() +    n = int(eval(input())) +    A = list(map(int, input().split())) +    q = deque() -            deq.append(a[i]) +            q.append(A[i]) -            deq.appendleft(a[i]) -    ans = list(deq) -    if n % 2 == 0: -        print(*ans, sep=" ") -    else: -        print(*ans[::-1], sep=" ") +            q.appendleft(A[i]) +    ans = list(q) +    if n % 2 != 0: +        ans.reverse() +    print((*ans))