from collections import deque

d = deque()

n = int(input())

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

for i in range(n):

    if i % 2 == 0:

        d.append(alist[i])

    else:

        d.appendleft(alist[i])

if n % 2 == 0:

    d = list(d)

else:

    d = list(d)[::-1]

for element in d:

    print(element, end=" ")

print()

from collections import deque

n = int(eval(input()))

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

d = deque()

for i in range(n):

    if i % 2 == 0:

        d.append(alist[i])

    else:

        d.appendleft(alist[i])

if i % 2 == 0:

    print((*reversed(d)))

else:

    print((*d))
from collections import deque

d = deque()
n = int(input())
alist = list(map(int, input().split()))
for i in range(n):
    if i % 2 == 0:
        d.append(alist[i])
    else:
        d.appendleft(alist[i])
if n % 2 == 0:
    d = list(d)
else:
    d = list(d)[::-1]
for element in d:
    print(element, end=" ")
print()

from collections import deque

n = int(eval(input()))
alist = list(map(int, input().split()))
d = deque()
for i in range(n):
    if i % 2 == 0:
        d.append(alist[i])
    else:
        d.appendleft(alist[i])
if i % 2 == 0:
    print((*reversed(d)))
else:
    print((*d))

+n = int(eval(input())) +alist = list(map(int, input().split())) -n = int(input()) -alist = list(map(int, input().split())) -if n % 2 == 0: -    d = list(d) +if i % 2 == 0: +    print((*reversed(d))) -    d = list(d)[::-1] -for element in d: -    print(element, end=" ") -print() +    print((*d))