N=int(eval(input()))

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

b=[0]*N

b[N//2]=a[0]

for i in range(1,N//2+1):

  b[N//2-i]=a[i*2-1]

  if i != N//2 or N%2==1:

    b[N//2+i]=a[i*2]

if N%2==1:

  b=b[::-1]

print((" ".join(map(str,b))))

  
import collections

n = int(eval(input()))

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

b = collections.deque()



flag = True



for x in a:

    if flag:

        b.append(x)

        flag = False

    else:

        b.appendleft(x)

        flag = True

if flag:

    print((*b))

else:

    print((*list(b)[::-1]))

N = int(eval(input()))
a = list(map(int, input().split()))
b = [0] * N
b[N // 2] = a[0]
for i in range(1, N // 2 + 1):
    b[N // 2 - i] = a[i * 2 - 1]
    if i != N // 2 or N % 2 == 1:
        b[N // 2 + i] = a[i * 2]
if N % 2 == 1:
    b = b[::-1]
print((" ".join(map(str, b))))

import collections

n = int(eval(input()))
a = list(map(int, input().split()))
b = collections.deque()
flag = True
for x in a:
    if flag:
        b.append(x)
        flag = False
    else:
        b.appendleft(x)
        flag = True
if flag:
    print((*b))
else:
    print((*list(b)[::-1]))

-N = int(eval(input())) +import collections + +n = int(eval(input())) -b = [0] * N -b[N // 2] = a[0] -for i in range(1, N // 2 + 1): -    b[N // 2 - i] = a[i * 2 - 1] -    if i != N // 2 or N % 2 == 1: -        b[N // 2 + i] = a[i * 2] -if N % 2 == 1: -    b = b[::-1] -print((" ".join(map(str, b)))) +b = collections.deque() +flag = True +for x in a: +    if flag: +        b.append(x) +        flag = False +    else: +        b.appendleft(x) +        flag = True +if flag: +    print((*b)) +else: +    print((*list(b)[::-1]))