#include <iostream>
using namespace std;
int main(void){
    int n,i,k;
    cin >> n;
    int day[n];
    for(i=0;i<n;i++){
    cin >> day[i+1];
    }cout << day [n]; 
    for(k=1;k<n;k++){
        cout << " ";
        cout << day[n-k];
    }
    cout << endl;
}


#include <iostream>
#include <string>
#include <sstream>
#include <stack>

using namespace std;

int main()
{
  string s;
  getline(cin, s);
  getline(cin, s);
  stringstream ss(s);
  stack<string> st;

  while (ss.peek() != EOF) {
    uint t;
    ss >> t;
    st.push(to_string(t));
    if (ss.peek() == EOF) break;
    st.push(" ");
  }

  while (!st.empty()) {
    cout << st.top();
    st.pop();
  }
  cout << endl;
}

