#include <iostream>
using namespace std;
int main() {
int n;
int tab[10000];
cin >> n;
for(int i=0;i<n;i++) {
cin >> tab[i];
}
for(int i=n-1;i>=0;i--) {
cout << tab[i] << endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwogCmludCBtYWluKCkgewogCglpbnQgbjsKCWludCB0YWJbMTAwMDBdOwoJY2luID4+IG47Cglmb3IoaW50IGk9MDtpPG47aSsrKSB7CgkJY2luID4+IHRhYltpXTsKCX0KCWZvcihpbnQgaT1uLTE7aT49MDtpLS0pIHsKCQljb3V0IDw8IHRhYltpXSA8PCBlbmRsOwoJfQoJcmV0dXJuIDA7Cn0=