n = int(input())

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

if n%2:

    print(*l[::-2], end=' ')

    print(*l[1::2])

else:

    print(*l[::-2], end=' ')

    print(*l[0::2])

n = int(eval(input()))

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

print((*(l[::-2]+l[n%2::2])))
n = int(input())
l = list(map(int, input().split()))
if n % 2:
    print(*l[::-2], end=" ")
    print(*l[1::2])
else:
    print(*l[::-2], end=" ")
    print(*l[0::2])

n = int(eval(input()))
l = list(map(int, input().split()))
print((*(l[::-2] + l[n % 2 :: 2])))

-n = int(input()) +n = int(eval(input())) -if n % 2: -    print(*l[::-2], end=" ") -    print(*l[1::2]) -else: -    print(*l[::-2], end=" ") -    print(*l[0::2]) +print((*(l[::-2] + l[n % 2 :: 2])))