output_description: Print n integers in a line with spaces in between. The i-th integer should be
  b_i.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      n
      a_1 a_2 ... a_n
attempt: #include<iostream>
  #include<string>
  #include<vector>
  #include<algorithm>
  #include<cmath>
  #include<cstdio>
  #include<map>
   
  using namespace std;
   
  #define rep(i,n) for(int i=0;i<n;i++)
  #define REP(i,s,n) for(int i=(s);i<(n);i++)
  #define repr(i,n) for(int i=n-1;i>=0;i--)
  #define REPR(i,s,n) for(int i=(s);i>=(n);i--)
  #define pb push_back
  #define pf push_front
   
  typedef vector<int> vi;
  typedef vector<string> vs;
  typedef long long ll;
  typedef vector<ll> vll;
   
  ll gcd(ll x, ll y) {
  	ll r;
  	while ((r = x % y) != 0) {
  		x = y;
  		y = r;
  	}
  	return y;
  	}
  ll lcm(ll x, ll y) {
  	x /= gcd(x, y);
  	y /= gcd(x, y);
  	return (x*y);
  }
  
  int main()
  {
  	int n;
      cin >> n;
      int a[n];
      rep(i,n) cin >> a[i];
      if(n%2==0){
          for(int i=(n-1);i>0;i-=2) cout << a[i] << " ";
          for(int i=0;i<n;i+=2) cout << a[i] << " ";
      }
      else{
          for(int i=(n-1);i>=0;i-=2) cout << a[i] << " ";
          for(int i=1;i<n;i+=2) cout << a[i] << " ";
      }
      cout << endl;
  	return 0;
  }
  
problem_description: Statement
  
  You are given an integer sequence of length n, a_1, ..., a_n. Let us consider
  performing the following n operations on an empty sequence b.
  
  The i-th operation is as follows:
  
    1. Append a_i to the end of b.
    2. Reverse the order of the elements in b.
  
  Find the sequence b obtained after these n operations.
samples: [{"input": "4\n    1 2 3 4", "output": "4 2 1 3\n    \n\n  * After step 1 of the first operation, b becomes: 1.\n  * After step 2 of the first operation, b becomes: 1.\n  * After step 1 of the second operation, b becomes: 1, 2.\n  * After step 2 of the second operation, b becomes: 2, 1.\n  * After step 1 of the third operation, b becomes: 2, 1, 3.\n  * After step 2 of the third operation, b becomes: 3, 1, 2.\n  * After step 1 of the fourth operation, b becomes: 3, 1, 2, 4.\n  * After step 2 of the fourth operation, b becomes: 4, 2, 1, 3.\n\nThus, the answer is `4 2 1 3`.\n\n* * *"}, {"input": "3\n    1 2 3", "output": "3 1 2\n    \n\nAs shown above in Sample Output 1, b becomes 3, 1, 2 after step 2 of the third\noperation. Thus, the answer is `3 1 2`.\n\n* * *"}, {"input": "1\n    1000000000", "output": "1000000000\n    \n\n* * *"}, {"input": "6\n    0 6 7 6 7 0", "output": "0 6 6 0 7 7"}]