N = int(eval(input()))

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

if N%2==0:

  B = [A[i] for i in range(N) if i%2==0]

  C = [A[(N-i-1)] for i in range(N) if (N-i-1)%2==1]

  print((*C+B))

else:

  B = [A[i] for i in range(N) if i%2==1]

  C = [A[(N-i-1)] for i in range(N) if (N-i-1)%2==0]

  print((*C+B))
from collections import deque

N = int(eval(input()))

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

B = deque([])

c = 1

for a in A:

  if c:

    B.append(a)

  else:

    B.appendleft(a)

  c = 1-c

if N%2:

  B.reverse()

print((*B))
N = int(eval(input()))
A = list(map(int, input().split()))
if N % 2 == 0:
    B = [A[i] for i in range(N) if i % 2 == 0]
    C = [A[(N - i - 1)] for i in range(N) if (N - i - 1) % 2 == 1]
    print((*C + B))
else:
    B = [A[i] for i in range(N) if i % 2 == 1]
    C = [A[(N - i - 1)] for i in range(N) if (N - i - 1) % 2 == 0]
    print((*C + B))

from collections import deque

N = int(eval(input()))
A = list(map(int, input().split()))
B = deque([])
c = 1
for a in A:
    if c:
        B.append(a)
    else:
        B.appendleft(a)
    c = 1 - c
if N % 2:
    B.reverse()
print((*B))

+from collections import deque + -if N % 2 == 0: -    B = [A[i] for i in range(N) if i % 2 == 0] -    C = [A[(N - i - 1)] for i in range(N) if (N - i - 1) % 2 == 1] -    print((*C + B)) -else: -    B = [A[i] for i in range(N) if i % 2 == 1] -    C = [A[(N - i - 1)] for i in range(N) if (N - i - 1) % 2 == 0] -    print((*C + B)) +B = deque([]) +c = 1 +for a in A: +    if c: +        B.append(a) +    else: +        B.appendleft(a) +    c = 1 - c +if N % 2: +    B.reverse() +print((*B))