#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
vector<int> dane_wjesciowe;
for(int i = 0; i < n; i++){
cin >> dane_wjesciowe[i];
}
reverse(dane_wjesciowe.begin(), dane_wjesciowe.end());
for(int i = 0; i < dane_wjesciowe.size(); i++){
cout << dane_wjesciowe[i] << " ";
}
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKICAgIGludCBuOwogICAgY2luID4+IG47CiAgICB2ZWN0b3I8aW50PiBkYW5lX3dqZXNjaW93ZTsKICAgIGZvcihpbnQgaSA9IDA7IGkgPCBuOyBpKyspewogICAgCWNpbiA+PiBkYW5lX3dqZXNjaW93ZVtpXTsKICAgIH0KICAgIHJldmVyc2UoZGFuZV93amVzY2lvd2UuYmVnaW4oKSwgZGFuZV93amVzY2lvd2UuZW5kKCkpOwogICAgZm9yKGludCBpID0gMDsgaSA8IGRhbmVfd2plc2Npb3dlLnNpemUoKTsgaSsrKXsKICAgIAljb3V0IDw8IGRhbmVfd2plc2Npb3dlW2ldIDw8ICIgIjsKICAgIH0KCXJldHVybiAwOwp9