import sys

input = sys.stdin.readline

import collections



n = int(input().rstrip())

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



b = collections.deque([], maxlen=n)

for i in range(n):

    b.append(a[i]) if i % 2 == 0 else b.appendleft(a[i])

if (n - 1) % 2 == 0: b = list(reversed(b))



for elem in b: print(elem, end=' ')

import sys

from collections import deque



n, *a = map(int, sys.stdin.read().split())



def main():

    b = deque()

    for i in range(n):

        if i & 1:

            b.appendleft(a[i])

        else:

            b.append(a[i])

    res = list(b)

    if n & 1:

        res = res[::-1]



    return res



if __name__ == '__main__':

    ans = main()

    print(*ans, sep=' ')

import sys

input = sys.stdin.readline
import collections

n = int(input().rstrip())
a = [a for a in input().split()]
b = collections.deque([], maxlen=n)
for i in range(n):
    b.append(a[i]) if i % 2 == 0 else b.appendleft(a[i])
if (n - 1) % 2 == 0:
    b = list(reversed(b))
for elem in b:
    print(elem, end=" ")

import sys
from collections import deque

n, *a = map(int, sys.stdin.read().split())


def main():
    b = deque()
    for i in range(n):
        if i & 1:
            b.appendleft(a[i])
        else:
            b.append(a[i])
    res = list(b)
    if n & 1:
        res = res[::-1]
    return res


if __name__ == "__main__":
    ans = main()
    print(*ans, sep=" ")

+from collections import deque -input = sys.stdin.readline -import collections +n, *a = map(int, sys.stdin.read().split()) -n = int(input().rstrip()) -a = [a for a in input().split()] -b = collections.deque([], maxlen=n) -for i in range(n): -    b.append(a[i]) if i % 2 == 0 else b.appendleft(a[i]) -if (n - 1) % 2 == 0: -    b = list(reversed(b)) -for elem in b: -    print(elem, end=" ") + +def main(): +    b = deque() +    for i in range(n): +        if i & 1: +            b.appendleft(a[i]) +        else: +            b.append(a[i]) +    res = list(b) +    if n & 1: +        res = res[::-1] +    return res + + +if __name__ == "__main__": +    ans = main() +    print(*ans, sep=" ")