from collections import deque
n = int(input())
a = list(map(int, input().split()))
b = deque([])
if n % 2 == 0:
    flag = True
else:
    flag = False
for i in range(n):
    if flag:
        b.append(a[i])
        flag = not flag
    else:
        b.appendleft(a[i])
        flag = not flag
print(' '.join(map(str, b)))

d3497b691810a351becd5d27566320971d672e05
<mask token>

<mask token>
if n % 2 == 0:
    flag = True
else:
    flag = False
for i in range(n):
    if flag:
        b.append(a[i])
        flag = not flag
    else:
        b.appendleft(a[i])
        flag = not flag
print(' '.join(map(str, b)))

<mask token>
n = int(input())
a = list(map(int, input().split()))
b = deque([])
if n % 2 == 0:
    flag = True
else:
    flag = False
for i in range(n):
    if flag:
        b.append(a[i])
        flag = not flag
    else:
        b.appendleft(a[i])
        flag = not flag
print(' '.join(map(str, b)))

from collections import deque
n = int(input())
a = list(map(int, input().split()))
b = deque([])
if n % 2 == 0:
    flag = True
else:
    flag = False
for i in range(n):
    if flag:
        b.append(a[i])
        flag = not flag
    else:
        b.appendleft(a[i])
        flag = not flag
print(' '.join(map(str, b)))
