from collections import deque

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

append, appendleft = b.append, b.appendleft

flag = True

for i in range(n):

    if flag: append(a[i])

    else: appendleft(a[i])

    flag = not flag

if not flag: b.reverse()

print((" ".join(list(map(str, b)))))
from collections import deque

def main():

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

    append, appendleft = b.append, b.appendleft

    flag = True

    for el in a:

        if flag: append(el)

        else: appendleft(el)

        flag = not flag

    if not flag: b.reverse()

    print((" ".join(list(map(str, b)))))

main()
from collections import deque

n, a, b = int(eval(input())), list(map(int, input().split())), deque()
append, appendleft = b.append, b.appendleft
flag = True
for i in range(n):
    if flag:
        append(a[i])
    else:
        appendleft(a[i])
    flag = not flag
if not flag:
    b.reverse()
print((" ".join(list(map(str, b)))))

from collections import deque


def main():
    n, a, b = int(eval(input())), list(map(int, input().split())), deque()
    append, appendleft = b.append, b.appendleft
    flag = True
    for el in a:
        if flag:
            append(el)
        else:
            appendleft(el)
        flag = not flag
    if not flag:
        b.reverse()
    print((" ".join(list(map(str, b)))))


main()

-n, a, b = int(eval(input())), list(map(int, input().split())), deque() -append, appendleft = b.append, b.appendleft -flag = True -for i in range(n): -    if flag: -        append(a[i]) -    else: -        appendleft(a[i]) -    flag = not flag -if not flag: -    b.reverse() -print((" ".join(list(map(str, b))))) + +def main(): +    n, a, b = int(eval(input())), list(map(int, input().split())), deque() +    append, appendleft = b.append, b.appendleft +    flag = True +    for el in a: +        if flag: +            append(el) +        else: +            appendleft(el) +        flag = not flag +    if not flag: +        b.reverse() +    print((" ".join(list(map(str, b))))) + + +main()