n = int(eval(input()))

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

b = [0 for _ in range(n)]

count = 0

i = 0

j = -1

k = -1



for _ in range(n):

  if count % 2 == 0:

    b[i] = a[k]

    i += 1

    k -= 1

  else:

    b[j] = a[k]

    j -= 1

    k -= 1

  count += 1



print((*b))
n = int(eval(input()))

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



cnt = 0

b = []

c = []

for i in range(n):

  if i == 0:

    b.append(a[i])

  elif i % 2 == 0:

    b.append(a[i])

  elif i % 2 == 1:

    c.append(a[i])



if n % 2:

  ans = b[::-1] + c

else:

  ans = c[::-1] + b

print((*ans))

n = int(eval(input()))
a = list(map(int, input().split()))
b = [0 for _ in range(n)]
count = 0
i = 0
j = -1
k = -1
for _ in range(n):
    if count % 2 == 0:
        b[i] = a[k]
        i += 1
        k -= 1
    else:
        b[j] = a[k]
        j -= 1
        k -= 1
    count += 1
print((*b))

n = int(eval(input()))
a = list(map(int, input().split()))
cnt = 0
b = []
c = []
for i in range(n):
    if i == 0:
        b.append(a[i])
    elif i % 2 == 0:
        b.append(a[i])
    elif i % 2 == 1:
        c.append(a[i])
if n % 2:
    ans = b[::-1] + c
else:
    ans = c[::-1] + b
print((*ans))

-b = [0 for _ in range(n)] -count = 0 -i = 0 -j = -1 -k = -1 -for _ in range(n): -    if count % 2 == 0: -        b[i] = a[k] -        i += 1 -        k -= 1 -    else: -        b[j] = a[k] -        j -= 1 -        k -= 1 -    count += 1 -print((*b)) +cnt = 0 +b = [] +c = [] +for i in range(n): +    if i == 0: +        b.append(a[i]) +    elif i % 2 == 0: +        b.append(a[i]) +    elif i % 2 == 1: +        c.append(a[i]) +if n % 2: +    ans = b[::-1] + c +else: +    ans = c[::-1] + b +print((*ans))