n = int(eval(input()))

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



even = []

odd = []

for i in range(0,n):

	if i % 2 == 0:

		odd.append(a[i])

	else:

		even.append(a[i])



res = []

if n % 2 == 0:

	even = reversed(even)

	res.extend(even)

	res.extend(odd)

else:

	odd = reversed(odd)

	res.extend(odd)

	res.extend(even)



print((" ".join(map(str,res))))
n = int(eval(input()))

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



if n == 1:

	print((a[0]))

elif n % 2 == 0:

	print((" ".join(map(str, a[1::2][::-1] + a[0::2]))))

else:

	print((" ".join(map(str, a[0::2][::-1] + a[1::2]))))
n = int(eval(input()))
a = list(map(int, input().split()))
even = []
odd = []
for i in range(0, n):
    if i % 2 == 0:
        odd.append(a[i])
    else:
        even.append(a[i])
res = []
if n % 2 == 0:
    even = reversed(even)
    res.extend(even)
    res.extend(odd)
else:
    odd = reversed(odd)
    res.extend(odd)
    res.extend(even)
print((" ".join(map(str, res))))

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

-even = [] -odd = [] -for i in range(0, n): -    if i % 2 == 0: -        odd.append(a[i]) -    else: -        even.append(a[i]) -res = [] -if n % 2 == 0: -    even = reversed(even) -    res.extend(even) -    res.extend(odd) +if n == 1: +    print((a[0])) +elif n % 2 == 0: +    print((" ".join(map(str, a[1::2][::-1] + a[0::2])))) -    odd = reversed(odd) -    res.extend(odd) -    res.extend(even) -print((" ".join(map(str, res)))) +    print((" ".join(map(str, a[0::2][::-1] + a[1::2]))))