Buggy python submission (verdict: Time Limit Exceeded):
import re

n = int(raw_input())
a = re.split('\s', raw_input())

first = ""
second = ""

if (n % 2 == 0):
        for i in range(n):
                if (i % 2 == 0):
                        if (second == ""):
                                second = a[i]
                        else:   
                                second = second + " " + a[i]
                else:   
                        if (first == ""):
                                first = a[i]
                        else:   
                                first = a[i] + " " + first
else:   
        for i in range(n):
                if (i % 2 == 1):
                        if (second == ""):
                                second = a[i]
                        else:   
                                second = second + " " + a[i]
                else:   
                        if (first == ""):
                                first = a[i]
                        else:   
                                first = a[i] + " " + first

print first + " " + second


Fixed submission:
# -*- coding: utf-8 -*-

import re

n = int(raw_input())
a = re.split('\s', raw_input())

ans = [0]*n

if (n % 2 == 0):
        first = n / 2 - 1
        second = n / 2
        for i in range(n):
                if (i % 2 == 0):
                        ans[second] = a[i]
                        second += 1
                else:   
                        ans[first] = a[i]
                        first -= 1
else:   
        first = (n - 1) / 2
        second = (n - 1) / 2 + 1
        for i in range(n):
                if (i % 2 == 1):
                        ans[second] = a[i]
                        second += 1
                else:   
                        ans[first] = a[i]
                        first -= 1
ans = map(str, ans)
print " ".join(ans)

Buggy python submission (verdict: Time Limit Exceeded):
# -*- coding: utf-8 -*-
import re

n = int(raw_input())
a = re.split('\s', raw_input())

first = ""
second = ""

if (n % 2 == 0):
        for i in range(n):
                if (i % 2 == 0):
                        if (second == ""):
                                second = a[i]
                        else:   
                                second = second + " " + a[i]
                else:   
                        if (first == ""):
                                first = a[i]
                        else:   
                                first = a[i] + " " + first
else:   
        for i in range(n):
                if (i % 2 == 1):
                        if (second == ""):
                                second = a[i]
                        else:   
                                second = second + " " + a[i]
                else:   
                        if (first == ""):
                                first = a[i]
                        else:   
                                first = a[i] + " " + first

print first + " " + second


Fixed submission:
# -*- coding: utf-8 -*-

import re

n = int(raw_input())
a = re.split('\s', raw_input())

ans = [0]*n

if (n % 2 == 0):
        first = n / 2 - 1
        second = n / 2
        for i in range(n):
                if (i % 2 == 0):
                        ans[second] = a[i]
                        second += 1
                else:   
                        ans[first] = a[i]
                        first -= 1
else:   
        first = (n - 1) / 2
        second = (n - 1) / 2 + 1
        for i in range(n):
                if (i % 2 == 1):
                        ans[second] = a[i]
                        second += 1
                else:   
                        ans[first] = a[i]
                        first -= 1
ans = map(str, ans)
print " ".join(ans)

Buggy python submission (verdict: Time Limit Exceeded):
# -*- coding: utf-8 -*-
import re

n = int(raw_input())
a = re.split('\s', raw_input())

first = ""
second = ""

if (n % 2 == 0):
        for i in range(n):
                if (i % 2 == 0):
                        if (second == ""):
                                second = a[i]
                        else:   
                                second = second + " " + a[i]
                else:   
                        if (first == ""):
                                first = a[i]
                        else:   
                                first = a[i] + " " + first
else:   
        for i in range(n):
                if (i % 2 == 1):
                        if (second == ""):
                                second = a[i]
                        else:   
                                second = second + " " + a[i]
                else:   
                        if (first == ""):
                                first = a[i]
                        else:   
                                first = a[i] + " " + first

print first + " " + second


Fixed submission:
# -*- coding: utf-8 -*-

import re

n = int(raw_input())
a = re.split('\s', raw_input())

ans = [0]*n

if (n % 2 == 0):
        first = n / 2 - 1
        second = n / 2
        for i in range(n):
                if (i % 2 == 0):
                        ans[second] = a[i]
                        second += 1
                else:   
                        ans[first] = a[i]
                        first -= 1
else:   
        first = (n - 1) / 2
        second = (n - 1) / 2 + 1
        for i in range(n):
                if (i % 2 == 1):
                        ans[second] = a[i]
                        second += 1
                else:   
                        ans[first] = a[i]
                        first -= 1
ans = map(str, ans)
print " ".join(ans)