from collections import deque

n,a,b=int(input()),deque(map(int,input().split())),deque()

for i in range(n):

  if n%2==0:

    if i%2==0:

      b.append(a[i])

    else:

      b.appendleft(a[i])

  else:

    if i%2==0:

      b.appendleft(a[i])

    else:

      b.append(a[i])

print(*b,sep=' ')

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

b=[a[1::2][::-1]+a[::2],a[0::2][::-1]+a[1::2]][n%2]

print(*b,sep=' ')

from collections import deque

n, a, b = int(input()), deque(map(int, input().split())), deque()
for i in range(n):
    if n % 2 == 0:
        if i % 2 == 0:
            b.append(a[i])
        else:
            b.appendleft(a[i])
    else:
        if i % 2 == 0:
            b.appendleft(a[i])
        else:
            b.append(a[i])
print(*b, sep=" ")

n, a = int(input()), list(map(int, input().split()))
b = [a[1::2][::-1] + a[::2], a[0::2][::-1] + a[1::2]][n % 2]
print(*b, sep=" ")

-from collections import deque - -n, a, b = int(input()), deque(map(int, input().split())), deque() -for i in range(n): -    if n % 2 == 0: -        if i % 2 == 0: -            b.append(a[i]) -        else: -            b.appendleft(a[i]) -    else: -        if i % 2 == 0: -            b.appendleft(a[i]) -        else: -            b.append(a[i]) +n, a = int(input()), list(map(int, input().split())) +b = [a[1::2][::-1] + a[::2], a[0::2][::-1] + a[1::2]][n % 2]