n=int(eval(input()))

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

ushiro=[a[i] for i in range(n) if i%2==0]#if_n%2==0_it_will_be_behind

mae=[a[i] for i in range(n) if i%2==1]

p=mae[::-1]+ushiro

if n%2==0:

    print((*p))

else:

    print((*p[::-1]))
n=int(eval(input()))

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

ushiro=list()

mae=list()

for i in range(n):

    if i%2:#1

        mae.append(a[i])

    else:

        ushiro.append(a[i])

p=ushiro[::-1]+mae if n%2 else mae[::-1]+ushiro

print((*p))
n = int(eval(input()))
a = list(map(int, input().split()))
ushiro = [a[i] for i in range(n) if i % 2 == 0]  # if_n%2==0_it_will_be_behind
mae = [a[i] for i in range(n) if i % 2 == 1]
p = mae[::-1] + ushiro
if n % 2 == 0:
    print((*p))
else:
    print((*p[::-1]))

n = int(eval(input()))
a = list(map(int, input().split()))
ushiro = list()
mae = list()
for i in range(n):
    if i % 2:  # 1
        mae.append(a[i])
    else:
        ushiro.append(a[i])
p = ushiro[::-1] + mae if n % 2 else mae[::-1] + ushiro
print((*p))

-ushiro = [a[i] for i in range(n) if i % 2 == 0]  # if_n%2==0_it_will_be_behind -mae = [a[i] for i in range(n) if i % 2 == 1] -p = mae[::-1] + ushiro -if n % 2 == 0: -    print((*p)) -else: -    print((*p[::-1])) +ushiro = list() +mae = list() +for i in range(n): +    if i % 2:  # 1 +        mae.append(a[i]) +    else: +        ushiro.append(a[i]) +p = ushiro[::-1] + mae if n % 2 else mae[::-1] + ushiro +print((*p))