#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;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CgkKCWludCBuOwoJaW50IHRhYlsxMDAwMF07CgljaW4gPj4gbjsKCWZvcihpbnQgaT0wO2k8bjtpKyspIHsKCQljaW4gPj4gdGFiW2ldOwoJfQoJZm9yKGludCBpPW4tMTtpPj0wO2ktLSkgewoJCWNvdXQgPDwgdGFiW2ldIDw8IGVuZGw7Cgl9CgoJcmV0dXJuIDA7Cn0=