

N = int(eval(input()))

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



B = [0] * N

if N % 2 == 0:

  for i in range(N):

    if i % 2 == 0:

      B[N//2+i//2] = A[i]

    else:

      B[N//2-(i//2+1)] = A[i]

else:

  for i in range(N):

    if i % 2 == 1:

      B[N//2+(i//2+1)] = A[i]

    else:

      B[N//2-(i//2)] = A[i]



print((*B))
N = int(input())

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



if N == 1:

  print(A[0])

else:

  print(*A[::-2], end=" ")

  print(*A[N%2::2])

N = int(eval(input()))
A = list(map(int, input().split()))
B = [0] * N
if N % 2 == 0:
    for i in range(N):
        if i % 2 == 0:
            B[N // 2 + i // 2] = A[i]
        else:
            B[N // 2 - (i // 2 + 1)] = A[i]
else:
    for i in range(N):
        if i % 2 == 1:
            B[N // 2 + (i // 2 + 1)] = A[i]
        else:
            B[N // 2 - (i // 2)] = A[i]
print((*B))

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

-N = int(eval(input())) +N = int(input()) -B = [0] * N -if N % 2 == 0: -    for i in range(N): -        if i % 2 == 0: -            B[N // 2 + i // 2] = A[i] -        else: -            B[N // 2 - (i // 2 + 1)] = A[i] +if N == 1: +    print(A[0]) -    for i in range(N): -        if i % 2 == 1: -            B[N // 2 + (i // 2 + 1)] = A[i] -        else: -            B[N // 2 - (i // 2)] = A[i] -print((*B)) +    print(*A[::-2], end=" ") +    print(*A[N % 2 :: 2])