def split_and_change(N, Array):

    Arr1 = [a for ind, a in enumerate(Array) if ind % 2 == 0]

    Arr2 = [a for ind, a in enumerate(Array) if ind % 2 != 0]

    if N % 2 == 0:

        return Arr2[::-1] + Arr1

    else:

        return Arr1[::-1] + Arr2

    

print((" ".join(split_and_change(int(eval(input())), list(map(str, input().split()))))))
def split_and_change(N, Array):

    Arr1 = Array[0::2]

    Arr2 = Array[1::2]

    if N % 2 == 0:

        return Arr2[::-1] + Arr1

    else:

        return Arr1[::-1] + Arr2

    

print((" ".join(split_and_change(int(eval(input())), input().split()))))
def split_and_change(N, Array):
    Arr1 = [a for ind, a in enumerate(Array) if ind % 2 == 0]
    Arr2 = [a for ind, a in enumerate(Array) if ind % 2 != 0]
    if N % 2 == 0:
        return Arr2[::-1] + Arr1
    else:
        return Arr1[::-1] + Arr2


print((" ".join(split_and_change(int(eval(input())), list(map(str, input().split()))))))

def split_and_change(N, Array):
    Arr1 = Array[0::2]
    Arr2 = Array[1::2]
    if N % 2 == 0:
        return Arr2[::-1] + Arr1
    else:
        return Arr1[::-1] + Arr2


print((" ".join(split_and_change(int(eval(input())), input().split()))))

-    Arr1 = [a for ind, a in enumerate(Array) if ind % 2 == 0] -    Arr2 = [a for ind, a in enumerate(Array) if ind % 2 != 0] +    Arr1 = Array[0::2] +    Arr2 = Array[1::2] -print((" ".join(split_and_change(int(eval(input())), list(map(str, input().split())))))) +print((" ".join(split_and_change(int(eval(input())), input().split()))))