n,*a=list(map(int,open(0).read().split()))

b=a[1::2][::-1]+a[::2]

print((*b[::n%2<1or-1]))
n,a=open(0);a=a.split();print((*a[::-2]+a[int(n)%2::2]))
n, *a = list(map(int, open(0).read().split()))
b = a[1::2][::-1] + a[::2]
print((*b[:: n % 2 < 1 or -1]))

n, a = open(0)
a = a.split()
print((*a[::-2] + a[int(n) % 2 :: 2]))

-n, *a = list(map(int, open(0).read().split())) -b = a[1::2][::-1] + a[::2] -print((*b[:: n % 2 < 1 or -1])) +n, a = open(0) +a = a.split() +print((*a[::-2] + a[int(n) % 2 :: 2]))