from collections import deque



def main():

    eval(input())

    A = list(enumerate(input().split()))

    size = len(A)

    b = deque()

    for i, a in A:

        if i % 2 == 0:

            if size % 2 == 0:

                b.append(a)

            else:

                b.appendleft(a)    

        else:

            if size % 2 == 0:

                b.appendleft(a)

            else:

                b.append(a)



    print((" ".join(list(b))))



main()
from collections import deque



def main():

    eval(input())

    A = list(enumerate(input().split()))

    b = deque()

    (append1, append2) = (b.append, b.appendleft) if len(A) % 2 == 0 else (b.appendleft, b.append)

    for i, a in A:

        if i % 2 == 0:

            append1(a) 

        else:

            append2(a)



    print((" ".join(list(b))))



main()

from collections import deque


def main():
    eval(input())
    A = list(enumerate(input().split()))
    size = len(A)
    b = deque()
    for i, a in A:
        if i % 2 == 0:
            if size % 2 == 0:
                b.append(a)
            else:
                b.appendleft(a)
        else:
            if size % 2 == 0:
                b.appendleft(a)
            else:
                b.append(a)
    print((" ".join(list(b))))


main()

from collections import deque


def main():
    eval(input())
    A = list(enumerate(input().split()))
    b = deque()
    (append1, append2) = (
        (b.append, b.appendleft) if len(A) % 2 == 0 else (b.appendleft, b.append)
    )
    for i, a in A:
        if i % 2 == 0:
            append1(a)
        else:
            append2(a)
    print((" ".join(list(b))))


main()

-    size = len(A) +    (append1, append2) = ( +        (b.append, b.appendleft) if len(A) % 2 == 0 else (b.appendleft, b.append) +    ) -            if size % 2 == 0: -                b.append(a) -            else: -                b.appendleft(a) +            append1(a) -            if size % 2 == 0: -                b.appendleft(a) -            else: -                b.append(a) +            append2(a)