from collections import deque



n=int(eval(input()))

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



ans=deque()

if n%2==0:

  for i in range(n):

    if i%2==0:

      ans.append(a[i])

    else:

      ans.appendleft(a[i])

else:

  for i in range(n):

    if i%2==0:

      ans.appendleft(a[i])

    else:

      ans.append(a[i])



print((*ans))
from sys import stdin

nii=lambda:list(map(int,stdin.readline().split()))

lnii=lambda:list(map(int,stdin.readline().split()))

from collections import deque



n=int(eval(input()))

a=lnii()



ans=deque([])

for i in range(n):

  if i%2==0:

    ans.appendleft(a[i])

  else:

    ans.append(a[i])



if n%2==0:

  ans=reversed(ans)



print((*ans))
from collections import deque

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

from sys import stdin

nii = lambda: list(map(int, stdin.readline().split()))
lnii = lambda: list(map(int, stdin.readline().split()))
from collections import deque

n = int(eval(input()))
a = lnii()
ans = deque([])
for i in range(n):
    if i % 2 == 0:
        ans.appendleft(a[i])
    else:
        ans.append(a[i])
if n % 2 == 0:
    ans = reversed(ans)
print((*ans))

+from sys import stdin + +nii = lambda: list(map(int, stdin.readline().split())) +lnii = lambda: list(map(int, stdin.readline().split())) -a = list(map(int, input().split())) -ans = deque() +a = lnii() +ans = deque([]) +for i in range(n): +    if i % 2 == 0: +        ans.appendleft(a[i]) +    else: +        ans.append(a[i]) -    for i in range(n): -        if i % 2 == 0: -            ans.append(a[i]) -        else: -            ans.appendleft(a[i]) -else: -    for i in range(n): -        if i % 2 == 0: -            ans.appendleft(a[i]) -        else: -            ans.append(a[i]) +    ans = reversed(ans)