n=int(eval(input()));l=list(input().split());print((*l[n-n%2::-2]+l[n%2::2]))
n=int(eval(input()));l=input().split();print((*l[::-2]+l[n%2::2]))
n = int(eval(input()))
l = list(input().split())
print((*l[n - n % 2 :: -2] + l[n % 2 :: 2]))

n = int(eval(input()))
l = input().split()
print((*l[::-2] + l[n % 2 :: 2]))

-l = list(input().split()) -print((*l[n - n % 2 :: -2] + l[n % 2 :: 2])) +l = input().split() +print((*l[::-2] + l[n % 2 :: 2]))