n = int(eval(input()))

lis = []

li = list(map(str,input().split()))

if n % 2 == 0:

    b = li[1::2]

    for m in range(n//2):lis.append(b[-(m + 1)])

    print((" ".join(lis[::] + li[::2])))

else:

    b = li[::2]

    for m in range((n//2)+1):lis.append(b[-(m + 1)])

    print((" ".join(lis[::]+li[1::2])))
n = int(eval(input()))

lis = list(map(str,input().split()))

li = lis[::2]

l = lis[1::2]



if n % 2 == 0:

  l = l[::-1]

  ans = l+li

  print((" ".join(ans)))

else:

  li = li[::-1]

  ans = li+l

  print((" ".join(ans)))

n = int(eval(input()))
lis = []
li = list(map(str, input().split()))
if n % 2 == 0:
    b = li[1::2]
    for m in range(n // 2):
        lis.append(b[-(m + 1)])
    print((" ".join(lis[::] + li[::2])))
else:
    b = li[::2]
    for m in range((n // 2) + 1):
        lis.append(b[-(m + 1)])
    print((" ".join(lis[::] + li[1::2])))

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

-lis = [] -li = list(map(str, input().split())) +lis = list(map(str, input().split())) +li = lis[::2] +l = lis[1::2] -    b = li[1::2] -    for m in range(n // 2): -        lis.append(b[-(m + 1)]) -    print((" ".join(lis[::] + li[::2]))) +    l = l[::-1] +    ans = l + li +    print((" ".join(ans))) -    b = li[::2] -    for m in range((n // 2) + 1): -        lis.append(b[-(m + 1)]) -    print((" ".join(lis[::] + li[1::2]))) +    li = li[::-1] +    ans = li + l +    print((" ".join(ans)))