n=int(eval(input()))

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

bbottom=[]

btop=[]

for i in range(n):

  if i%2==0:

    bbottom.append(a[i])

  else:

    btop.append(a[i])

ans=btop[::-1]+bbottom

if n%2==1:

  ans=ans[::-1]

print((*ans))

       

n=int(eval(input()))

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

bbottom=a[0::2]

btop=a[1::2]

ans=btop[::-1]+bbottom

if n%2==1:

  ans=ans[::-1]

print((*ans))

       

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

n = int(eval(input()))
a = list(map(int, input().split()))
bbottom = a[0::2]
btop = a[1::2]
ans = btop[::-1] + bbottom
if n % 2 == 1:
    ans = ans[::-1]
print((*ans))

-bbottom = [] -btop = [] -for i in range(n): -    if i % 2 == 0: -        bbottom.append(a[i]) -    else: -        btop.append(a[i]) +bbottom = a[0::2] +btop = a[1::2]