from collections import deque

n = int(eval(input()))

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

b = deque()



ok = True

for i in range(n):

  if ok:

    b.append(a[i])

    ok = False

  else:

    b.appendleft(a[i])

    ok = True



b = list(map(str, list(b)))

if ok:

  print((" ".join(b)))

else:

  print((" ".join(b[::-1])))
from collections import deque

n = int(eval(input()))

a = list(input().split())

ans = deque()

for i in range(n):

    if i%2==0: ans.append(a[i])

    else: ans.appendleft(a[i])

ans = list(ans)

if n%2==0:

    print((" ".join(ans)))

else:

    print((" ".join(ans[::-1])))

from collections import deque

n = int(eval(input()))
a = list(map(int, input().split()))
b = deque()
ok = True
for i in range(n):
    if ok:
        b.append(a[i])
        ok = False
    else:
        b.appendleft(a[i])
        ok = True
b = list(map(str, list(b)))
if ok:
    print((" ".join(b)))
else:
    print((" ".join(b[::-1])))

from collections import deque

n = int(eval(input()))
a = list(input().split())
ans = deque()
for i in range(n):
    if i % 2 == 0:
        ans.append(a[i])
    else:
        ans.appendleft(a[i])
ans = list(ans)
if n % 2 == 0:
    print((" ".join(ans)))
else:
    print((" ".join(ans[::-1])))

-a = list(map(int, input().split())) -b = deque() -ok = True +a = list(input().split()) +ans = deque() -    if ok: -        b.append(a[i]) -        ok = False +    if i % 2 == 0: +        ans.append(a[i]) -        b.appendleft(a[i]) -        ok = True -b = list(map(str, list(b))) -if ok: -    print((" ".join(b))) +        ans.appendleft(a[i]) +ans = list(ans) +if n % 2 == 0: +    print((" ".join(ans))) -    print((" ".join(b[::-1]))) +    print((" ".join(ans[::-1])))