a = int(input())

ar = list(map(int,input().split(" ")))

br = []

if a % 2 == 0:

    for i in range(len(ar)-1,0,-2):

        br.append(ar[i])

    for i in range(0,len(ar)-1,+2):

        br.append(ar[i])

else:

    for i in range(len(ar)-1,-1,-2):

        br.append(ar[i])

    for i in range(1,len(ar)-1,+2):

        br.append(ar[i])

for i in range(a-1):

    print(str(br[i]),end = " ")

print(str(br[a-1]))

a = int(input())

ar = list(map(int,input().split(" ")))

br = []

for i in range(a-1,-1,-2):

    br.append(ar[i])

if a % 2 == 0:

    n = 0

else:

    n = 1

for i in range(n,a-1,2):

    br.append(ar[i])

for i in range(a-1):

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

print(br[a-1])

a = int(input())
ar = list(map(int, input().split(" ")))
br = []
if a % 2 == 0:
    for i in range(len(ar) - 1, 0, -2):
        br.append(ar[i])
    for i in range(0, len(ar) - 1, +2):
        br.append(ar[i])
else:
    for i in range(len(ar) - 1, -1, -2):
        br.append(ar[i])
    for i in range(1, len(ar) - 1, +2):
        br.append(ar[i])
for i in range(a - 1):
    print(str(br[i]), end=" ")
print(str(br[a - 1]))

a = int(input())
ar = list(map(int, input().split(" ")))
br = []
for i in range(a - 1, -1, -2):
    br.append(ar[i])
if a % 2 == 0:
    n = 0
else:
    n = 1
for i in range(n, a - 1, 2):
    br.append(ar[i])
for i in range(a - 1):
    print(br[i], end=" ")
print(br[a - 1])

+for i in range(a - 1, -1, -2): +    br.append(ar[i]) -    for i in range(len(ar) - 1, 0, -2): -        br.append(ar[i]) -    for i in range(0, len(ar) - 1, +2): -        br.append(ar[i]) +    n = 0 -    for i in range(len(ar) - 1, -1, -2): -        br.append(ar[i]) -    for i in range(1, len(ar) - 1, +2): -        br.append(ar[i]) +    n = 1 +for i in range(n, a - 1, 2): +    br.append(ar[i]) -    print(str(br[i]), end=" ") -print(str(br[a - 1])) +    print(br[i], end=" ") +print(br[a - 1])