n = int(input())

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

b = [0]*n

for i in range(n):

    if i % 2 == 0:

        b[n//2+i//2] = a[i]

    else:

        b[n//2-i//2-1] = a[i]

        

if n % 2 == 1:

    b = b[::-1]



if len(b) == 1:

    print(b[0])



else:

    for i in range(len(b)-1):

        print(b[i], end=" ")

    print(b[i+1])

n = int(eval(input()))

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

b = [0]*n

for i in range(n):

    if i % 2 == 0:

        b[n//2+i//2] = a[i]

    else:

        b[n//2-i//2-1] = a[i]



if n % 2 == 1:

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

else:

    print((*b))
n = int(input())
a = list(map(int, input().split()))
b = [0] * n
for i in range(n):
    if i % 2 == 0:
        b[n // 2 + i // 2] = a[i]
    else:
        b[n // 2 - i // 2 - 1] = a[i]
if n % 2 == 1:
    b = b[::-1]
if len(b) == 1:
    print(b[0])
else:
    for i in range(len(b) - 1):
        print(b[i], end=" ")
    print(b[i + 1])

n = int(eval(input()))
a = list(map(int, input().split()))
b = [0] * n
for i in range(n):
    if i % 2 == 0:
        b[n // 2 + i // 2] = a[i]
    else:
        b[n // 2 - i // 2 - 1] = a[i]
if n % 2 == 1:
    print((*b[::-1]))
else:
    print((*b))

-n = int(input()) +n = int(eval(input())) -    b = b[::-1] -if len(b) == 1: -    print(b[0]) +    print((*b[::-1])) -    for i in range(len(b) - 1): -        print(b[i], end=" ") -    print(b[i + 1]) +    print((*b))