Buggy python submission (verdict: Time Limit Exceeded):
n = int(input())
arr = input().split()
arr = list(map(int,arr))

b = []
for i in range(n):
    if i % 2 == 0:
        b.append(arr[i])
    else:
        b.insert(0,arr[i])

if n % 2 == 0:
    pass
else:
    b.reverse()

for i in range(n-1):
    print(b[i], end = ' ')
print(b[-1])


Fixed submission:
n = int(input())
arr = input().split()
arr = list(map(int,arr))

b = [0] * n
center = n // 2
for i in range(n):
    if i % 2 == 0:
        b[center + (i//2)] = arr[i]
    else:
        b[center - ((i+1)//2)] = arr[i]

if n % 2 == 0:
    pass
else:
    b.reverse()

for i in range(n-1):
    print(b[i], end = ' ')
print(b[-1])

Buggy python submission (verdict: Time Limit Exceeded):
n = int(input())
arr = input().split()
arr = list(map(int,arr))

b = []
for i in range(n):
    b.append(arr[i])
    b.reverse()

for i in range(n-1):
    print(b[i], end = ' ')
print(b[-1])


Fixed submission:
n = int(input())
arr = input().split()
arr = list(map(int,arr))

b = [0] * n
center = n // 2
for i in range(n):
    if i % 2 == 0:
        b[center + (i//2)] = arr[i]
    else:
        b[center - ((i+1)//2)] = arr[i]

if n % 2 == 0:
    pass
else:
    b.reverse()

for i in range(n-1):
    print(b[i], end = ' ')
print(b[-1])

Buggy python submission (verdict: Time Limit Exceeded):
#! -*- coding:utf-8 -*-
n = int(input())
a = map(int,input().split())
a = list(a)
x = []
#a = []
#for i in range(200000):
#    a.append(i)

count = 0
for i in range(n):
    if count % 2 == 1:
        x.append(a[i])
    else:
        x.insert(0,a[i])

    count += 1

if n % 2 == 0:
    x.reverse()
    x = map(str,x)
    print(' '.join(x))

else:
    x = map(str,x)
    print(' '.join(x))


Fixed submission:
n = int(input())
arr = input().split()
arr = list(map(int,arr))

b = [0] * n
center = n // 2
for i in range(n):
    if i % 2 == 0:
        b[center + (i//2)] = arr[i]
    else:
        b[center - ((i+1)//2)] = arr[i]

if n % 2 == 0:
    pass
else:
    b.reverse()

for i in range(n-1):
    print(b[i], end = ' ')
print(b[-1])

Buggy python submission (verdict: Time Limit Exceeded):
#! -*- coding:utf-8 -*-
n = int(input())
a = map(int,input().split())
a = list(a)
x = []

count = 0
for i in range(n):
    if count % 2 == 1:
        x.append(a[i])
    else:
        x.insert(0,a[i])

    count += 1

if n % 2 == 0:
    x.reverse()
    x = map(str,x)
    print(' '.join(x))

else:
    x = map(str,x)
    print(' '.join(x))


Fixed submission:
n = int(input())
arr = input().split()
arr = list(map(int,arr))

b = [0] * n
center = n // 2
for i in range(n):
    if i % 2 == 0:
        b[center + (i//2)] = arr[i]
    else:
        b[center - ((i+1)//2)] = arr[i]

if n % 2 == 0:
    pass
else:
    b.reverse()

for i in range(n-1):
    print(b[i], end = ' ')
print(b[-1])

Buggy python submission (verdict: Time Limit Exceeded):
#! -*- coding:utf-8 -*-
n = int(input())
a = map(int,input().split())
a = list(a)
x = []

count = 0
for i in range(n):
    if count % 2 == 1:
        x.append(a[i])
    else:
        x.insert(0,a[i])

    count += 1

if n % 2 == 0:
    x.reverse()
    for i in range(n-1):
        print(x[i],end = ' ')
    print(x[-1])
else:
    for i in range(n-1):
        print(x[i],end = ' ')
    print(x[-1])


Fixed submission:
n = int(input())
arr = input().split()
arr = list(map(int,arr))

b = [0] * n
center = n // 2
for i in range(n):
    if i % 2 == 0:
        b[center + (i//2)] = arr[i]
    else:
        b[center - ((i+1)//2)] = arr[i]

if n % 2 == 0:
    pass
else:
    b.reverse()

for i in range(n-1):
    print(b[i], end = ' ')
print(b[-1])

Buggy python submission (verdict: Time Limit Exceeded):
#! -*- coding:utf-8 -*-
n = int(input())
a = map(int,input().split())
a = list(a)
x = []

count = 0
for i in range(n):
    if count % 2 == 1:
        x.append(a[i])
    else:
        x.insert(0,a[i])

    count += 1

if n % 2 == 0:
    x.reverse()
    for i in range(n-1):
        print(x[i],end = ' ')
    print(x[-1])
else:
    for i in range(n-1):
        print(x[i],end = ' ')
    print(x[-1])


Fixed submission:
n = int(input())
arr = input().split()
arr = list(map(int,arr))

b = [0] * n
center = n // 2
for i in range(n):
    if i % 2 == 0:
        b[center + (i//2)] = arr[i]
    else:
        b[center - ((i+1)//2)] = arr[i]

if n % 2 == 0:
    pass
else:
    b.reverse()

for i in range(n-1):
    print(b[i], end = ' ')
print(b[-1])

Buggy python submission (verdict: Time Limit Exceeded):
#! -*- coding:utf-8 -*-
n = int(input())
a = map(int,input().split())
a = list(a)

b = ''
for i in range(n):
    b += str(a[i])
    b = b[::-1]

if n == 1:
    print(a[0])
else:
    b = list(b)
    b = list(map(int,b))
    for i in range(n-1):
        print(b[i], end = ' ')
    print(b[-1])


Fixed submission:
n = int(input())
arr = input().split()
arr = list(map(int,arr))

b = [0] * n
center = n // 2
for i in range(n):
    if i % 2 == 0:
        b[center + (i//2)] = arr[i]
    else:
        b[center - ((i+1)//2)] = arr[i]

if n % 2 == 0:
    pass
else:
    b.reverse()

for i in range(n-1):
    print(b[i], end = ' ')
print(b[-1])

Buggy python submission (verdict: Time Limit Exceeded):
#! -*- coding:utf-8 -*-
n = int(input())
a = map(int,input().split())
a = list(a)

b = ''
for i in range(n):
    b += str(a[i])
    b = b[::-1]

if n == 1:
    print(a[0])
else:
    for i in range(len(b)-1):
        print(int(b[i]),end = ' ')
    print(b[-1])


Fixed submission:
n = int(input())
arr = input().split()
arr = list(map(int,arr))

b = [0] * n
center = n // 2
for i in range(n):
    if i % 2 == 0:
        b[center + (i//2)] = arr[i]
    else:
        b[center - ((i+1)//2)] = arr[i]

if n % 2 == 0:
    pass
else:
    b.reverse()

for i in range(n-1):
    print(b[i], end = ' ')
print(b[-1])