n = int(eval(input()))

a = [int(i) for i in input().split()]



length = len(a)

b = [0] * length

center = length // 2



if len(a) % 2 != 0:

    before = center

    for i in range(len(a)):

        if i == 0:

            b[center] = a[i]

        else:

            if i % 2 != 0:

                before = before + i

            else:

                before = before - i

            b[before] = a[i]

else:

    before = center

    for i in range(len(a)):

        if i == 0:

            b[center] = a[i]

        else:

            if i % 2 != 0:

                before = before - i

            else:

                before = before + i

            b[before] = a[i]





L = [str(v) for v in b]

L = ' '.join(L)

print(L)

n = int(eval(input()))

a = [int(i) for i in input().split()]



b = [0] * n

center = n // 2



before = center

if n % 2 != 0:

    for i in range(len(a)):

        if i % 2 != 0:

            before = before + i

        else:

            before = before - i

        b[before] = a[i]

else:

    for i in range(len(a)):

        if i % 2 != 0:

            before = before - i

        else:

            before = before + i

        b[before] = a[i]



b = " ".join(list(map(str, b)))

print(b)

n = int(eval(input()))
a = [int(i) for i in input().split()]
length = len(a)
b = [0] * length
center = length // 2
if len(a) % 2 != 0:
    before = center
    for i in range(len(a)):
        if i == 0:
            b[center] = a[i]
        else:
            if i % 2 != 0:
                before = before + i
            else:
                before = before - i
            b[before] = a[i]
else:
    before = center
    for i in range(len(a)):
        if i == 0:
            b[center] = a[i]
        else:
            if i % 2 != 0:
                before = before - i
            else:
                before = before + i
            b[before] = a[i]
L = [str(v) for v in b]
L = " ".join(L)
print(L)

n = int(eval(input()))
a = [int(i) for i in input().split()]
b = [0] * n
center = n // 2
before = center
if n % 2 != 0:
    for i in range(len(a)):
        if i % 2 != 0:
            before = before + i
        else:
            before = before - i
        b[before] = a[i]
else:
    for i in range(len(a)):
        if i % 2 != 0:
            before = before - i
        else:
            before = before + i
        b[before] = a[i]
b = " ".join(list(map(str, b)))
print(b)

-length = len(a) -b = [0] * length -center = length // 2 -if len(a) % 2 != 0: -    before = center +b = [0] * n +center = n // 2 +before = center +if n % 2 != 0: -        if i == 0: -            b[center] = a[i] +        if i % 2 != 0: +            before = before + i -            if i % 2 != 0: -                before = before + i -            else: -                before = before - i -            b[before] = a[i] +            before = before - i +        b[before] = a[i] -    before = center -        if i == 0: -            b[center] = a[i] +        if i % 2 != 0: +            before = before - i -            if i % 2 != 0: -                before = before - i -            else: -                before = before + i -            b[before] = a[i] -L = [str(v) for v in b] -L = " ".join(L) -print(L) +            before = before + i +        b[before] = a[i] +b = " ".join(list(map(str, b))) +print(b)