#include"stdio.h"
#define N_MAX 2e5
#define A_MAX 1e9
int main()
{
	int n,temp = 0,a = 1,k = 1,i = 0;
	scanf("%d",&n);
	int b[n];
	if(n>=1&&n<=N_MAX)
	{
		for( i = 0;i<n;i++)
		{
			scanf("%d",&temp);
			if(b[i]>A_MAX)
				break;
			if(n%2==0)
			{
				if(i%2!=0)
				{
					b[n/2-a] = temp;
					a++;
				}
				else
					{	
					b[n-k] = temp;
					k++;
					}
			}
			else
			{
				if(i%2!=0)
				{
					b[n-k] = temp;
					k++;
				}
				else
				{
					b[(n+1)/2-a] = temp;
					a++;
				} 
			}
		}
	}
	return 0;
}
 