N=int(input())

s=list(input().split())

t=s[N::-2]+s[N%2::2]

for i in range(N):

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

N=int(eval(input()))

s=list(input().split())

print((" ".join(s[N::-2]+s[N%2::2])))
N = int(input())
s = list(input().split())
t = s[N::-2] + s[N % 2 :: 2]
for i in range(N):
    print(t[i], end=" ")

N = int(eval(input()))
s = list(input().split())
print((" ".join(s[N::-2] + s[N % 2 :: 2])))

-N = int(input()) +N = int(eval(input())) -t = s[N::-2] + s[N % 2 :: 2] -for i in range(N): -    print(t[i], end=" ") +print((" ".join(s[N::-2] + s[N % 2 :: 2])))