# ABC069 C - PushPush

from collections import deque

N = int(eval(input()))

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



B1 = deque()

B2 = deque()



for i in range(N):

    if i == 0:

        B1.appendleft(A[0])

        B2.appendleft(A[0])

    

    if i > 0 and i%2 == 1:

        B1.append(A[i])

        B2.appendleft(A[i])

    elif i > 0 and i%2 == 0:

        B1.appendleft(A[i])

        B2.append(A[i])



if N%2 == 1:

    B1 = list(B1)

    print((*B1))

elif N%2 == 0:

    B2 = list(B2)

    print((*B2))
n=int(eval(input()))

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

mode=0

from collections import deque

b=deque([])

for i in range(n):

  if i%2==0:

    b.append(a[i])

    mode+=1

    mode%=2

  else:

    b.appendleft(a[i])

    mode+=1

    mode%=2

if mode==1:

  b=list(b)

  b=b[::-1]

print((*b))

# ABC069 C - PushPush
from collections import deque

N = int(eval(input()))
A = list(map(int, input().split()))
B1 = deque()
B2 = deque()
for i in range(N):
    if i == 0:
        B1.appendleft(A[0])
        B2.appendleft(A[0])
    if i > 0 and i % 2 == 1:
        B1.append(A[i])
        B2.appendleft(A[i])
    elif i > 0 and i % 2 == 0:
        B1.appendleft(A[i])
        B2.append(A[i])
if N % 2 == 1:
    B1 = list(B1)
    print((*B1))
elif N % 2 == 0:
    B2 = list(B2)
    print((*B2))

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

b = deque([])
for i in range(n):
    if i % 2 == 0:
        b.append(a[i])
        mode += 1
        mode %= 2
    else:
        b.appendleft(a[i])
        mode += 1
        mode %= 2
if mode == 1:
    b = list(b)
    b = b[::-1]
print((*b))

-# ABC069 C - PushPush +n = int(eval(input())) +a = list(map(int, input().split())) +mode = 0 -N = int(eval(input())) -A = list(map(int, input().split())) -B1 = deque() -B2 = deque() -for i in range(N): -    if i == 0: -        B1.appendleft(A[0]) -        B2.appendleft(A[0]) -    if i > 0 and i % 2 == 1: -        B1.append(A[i]) -        B2.appendleft(A[i]) -    elif i > 0 and i % 2 == 0: -        B1.appendleft(A[i]) -        B2.append(A[i]) -if N % 2 == 1: -    B1 = list(B1) -    print((*B1)) -elif N % 2 == 0: -    B2 = list(B2) -    print((*B2)) +b = deque([]) +for i in range(n): +    if i % 2 == 0: +        b.append(a[i]) +        mode += 1 +        mode %= 2 +    else: +        b.appendleft(a[i]) +        mode += 1 +        mode %= 2 +if mode == 1: +    b = list(b) +    b = b[::-1] +print((*b))