n = int(eval(input()))

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



a1 = list(map(str, a[::2]))

a2 = list(map(str, a[1::2]))



if n % 2 == 1:

  print((" ".join(a1[::-1] + a2)))

else:

  print((" ".join(a2[::-1] + a1)))
n = int(eval(input()))

a = input().split()



a1 = a[::2]

a2 = a[1::2]



if n % 2 == 1:

  print((" ".join(a1[::-1] + a2)))

else:

  print((" ".join(a2[::-1] + a1)))
n = int(eval(input()))
a = list(map(int, input().split()))
a1 = list(map(str, a[::2]))
a2 = list(map(str, a[1::2]))
if n % 2 == 1:
    print((" ".join(a1[::-1] + a2)))
else:
    print((" ".join(a2[::-1] + a1)))

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

-a = list(map(int, input().split())) -a1 = list(map(str, a[::2])) -a2 = list(map(str, a[1::2])) +a = input().split() +a1 = a[::2] +a2 = a[1::2]