n=int(eval(input()))

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

from collections import deque

dq=deque([])

#pop/append/(append,pop)_left/in/len/count/[]/index/rotate()(右へnずらす)

for i in range(n):

    if i%2:

        dq.append(l[i])

    else:dq.appendleft(l[i])

print((*list(dq)[::-(-1)**(n%2)]))
from collections import deque

dq=deque([])

#pop/append/(append,pop)_left/in/len/count/[]/index/rotate()(右へnずらす)

n=int(input())

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

for i in range(n):

    if i%2:

        dq.append(a[i])

    else:

        dq.appendleft(a[i])

print(*list(dq)[::(-1)**(n%2+1)],sep= " ")

n = int(eval(input()))
l = list(map(int, input().split()))
from collections import deque

dq = deque([])
# pop/append/(append,pop)_left/in/len/count/[]/index/rotate()(右へnずらす)
for i in range(n):
    if i % 2:
        dq.append(l[i])
    else:
        dq.appendleft(l[i])
print((*list(dq)[:: -((-1) ** (n % 2))]))

from collections import deque

dq = deque([])
# pop/append/(append,pop)_left/in/len/count/[]/index/rotate()(右へnずらす)
n = int(input())
a = list(map(int, input().split()))
for i in range(n):
    if i % 2:
        dq.append(a[i])
    else:
        dq.appendleft(a[i])
print(*list(dq)[:: (-1) ** (n % 2 + 1)], sep=" ")

-n = int(eval(input())) -l = list(map(int, input().split())) +n = int(input()) +a = list(map(int, input().split())) -        dq.append(l[i]) +        dq.append(a[i]) -        dq.appendleft(l[i]) -print((*list(dq)[:: -((-1) ** (n % 2))])) +        dq.appendleft(a[i]) +print(*list(dq)[:: (-1) ** (n % 2 + 1)], sep=" ")