n = int(eval(input()))

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

answer = A[1::2][::-1]+A[::2]

if n%2==1:

    answer=answer[::-1]

print((*answer))

N=int(input())

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

print(*A[::-2],end=' ')

print(*A[N%2::2])

n = int(eval(input()))
A = list(map(int, input().split()))
answer = A[1::2][::-1] + A[::2]
if n % 2 == 1:
    answer = answer[::-1]
print((*answer))

N = int(input())
A = list(map(int, input().split()))
print(*A[::-2], end=" ")
print(*A[N % 2 :: 2])

-n = int(eval(input())) +N = int(input()) -answer = A[1::2][::-1] + A[::2] -if n % 2 == 1: -    answer = answer[::-1] -print((*answer)) +print(*A[::-2], end=" ") +print(*A[N % 2 :: 2])