n=int(eval(input()))

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

b=a[::-2]

if(n%2==1):c=a[1::2]

else:c=a[::2]

#print(b)

#print(c)

outp=str(b[0])

for i in range(1,len(b)):outp+=" "+str(b[i])

for i in range(len(c)):outp+=" "+str(c[i])

print(outp)
n = int(eval(input()))

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

o = []



for i in range(n)[::-2]:

    o.append(a[i])



for i in range(n)[n%2::2]:

    o.append(a[i])

print((*o))
n = int(eval(input()))
a = list(map(int, input().split()))
b = a[::-2]
if n % 2 == 1:
    c = a[1::2]
else:
    c = a[::2]
# print(b)
# print(c)
outp = str(b[0])
for i in range(1, len(b)):
    outp += " " + str(b[i])
for i in range(len(c)):
    outp += " " + str(c[i])
print(outp)

n = int(eval(input()))
a = list(map(int, input().split()))
o = []
for i in range(n)[::-2]:
    o.append(a[i])
for i in range(n)[n % 2 :: 2]:
    o.append(a[i])
print((*o))

-b = a[::-2] -if n % 2 == 1: -    c = a[1::2] -else: -    c = a[::2] -# print(b) -# print(c) -outp = str(b[0]) -for i in range(1, len(b)): -    outp += " " + str(b[i]) -for i in range(len(c)): -    outp += " " + str(c[i]) -print(outp) +o = [] +for i in range(n)[::-2]: +    o.append(a[i]) +for i in range(n)[n % 2 :: 2]: +    o.append(a[i]) +print((*o))