import sys

fastinput=sys.stdin.readline

N=int(eval(input()))

a=[int(i) for i in fastinput().split()]

result=[None]*N

if N%2:#odd

    c=(N-1)//2

    for num,i in enumerate(a):

        r=(num+1)//2

        if num==0:

            result[c]=i

        else:

            if num%2:#右半分

                result[c+r]=i

            else:

                result[c-r]=i

else:#even

    for num,i in enumerate(a):

        d=(N-num-1)//2

        if num%2:#左半分

            result[d]=i

        else:

            result[N-1-d]=i

print((" ".join([str(j) for j in result])))

            
import sys

fastinput=sys.stdin.readline

from collections import deque

N=int(eval(input()))

a=fastinput().split()

result=deque()

for k,i in enumerate(a):

    if (N-k)%2:

        result.appendleft(i)

    else:result.append(i)

print((" ".join(result)))
import sys

fastinput = sys.stdin.readline
N = int(eval(input()))
a = [int(i) for i in fastinput().split()]
result = [None] * N
if N % 2:  # odd
    c = (N - 1) // 2
    for num, i in enumerate(a):
        r = (num + 1) // 2
        if num == 0:
            result[c] = i
        else:
            if num % 2:  # 右半分
                result[c + r] = i
            else:
                result[c - r] = i
else:  # even
    for num, i in enumerate(a):
        d = (N - num - 1) // 2
        if num % 2:  # 左半分
            result[d] = i
        else:
            result[N - 1 - d] = i
print((" ".join([str(j) for j in result])))

import sys

fastinput = sys.stdin.readline
from collections import deque

N = int(eval(input()))
a = fastinput().split()
result = deque()
for k, i in enumerate(a):
    if (N - k) % 2:
        result.appendleft(i)
    else:
        result.append(i)
print((" ".join(result)))

+from collections import deque + -a = [int(i) for i in fastinput().split()] -result = [None] * N -if N % 2:  # odd -    c = (N - 1) // 2 -    for num, i in enumerate(a): -        r = (num + 1) // 2 -        if num == 0: -            result[c] = i -        else: -            if num % 2:  # 右半分 -                result[c + r] = i -            else: -                result[c - r] = i -else:  # even -    for num, i in enumerate(a): -        d = (N - num - 1) // 2 -        if num % 2:  # 左半分 -            result[d] = i -        else: -            result[N - 1 - d] = i -print((" ".join([str(j) for j in result]))) +a = fastinput().split() +result = deque() +for k, i in enumerate(a): +    if (N - k) % 2: +        result.appendleft(i) +    else: +        result.append(i) +print((" ".join(result)))