#include <bits/stdc++.h>
using namespace std;
stack<long long> s;
int main(){
int n;
while(cin >> n){
for(int i = 0;i < n;i ++){
long long number;
cin >> number;
s.push(number);
}
while(!s.empty()){
cout << s.top() << " ";
s.pop();
}
}
return 0;
}

京公网安备 11010502036488号