n = int(eval(input()))

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

b = a[::-2] + a[len(a)%2::2]

print((' '.join(b)))
n = int(eval(input()))

a = input().split()

print((' '.join(a[::-2] + a[n%2::2])))
n = int(eval(input()))
a = list(map(str, input().split()))
b = a[::-2] + a[len(a) % 2 :: 2]
print((" ".join(b)))

n = int(eval(input()))
a = input().split()
print((" ".join(a[::-2] + a[n % 2 :: 2])))

-a = list(map(str, input().split())) -b = a[::-2] + a[len(a) % 2 :: 2] -print((" ".join(b))) +a = input().split() +print((" ".join(a[::-2] + a[n % 2 :: 2])))