#include <iostream>
using namespace std;
int main()
{
int tamanho;
cin >> tamanho; /*Tamanho do array*/
int vet[tamanho];
for (int t = 0; t < tamanho; t++) /*Adiciona coisas no array*/
{
cin >> vet[t];
}
for (int f = tamanho - 1; f >= 0; f--) /*Imprime o que tem dentro do array em ordem inversa*/
{
cout << vet[f] << " ";
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKQp7CgogICAgaW50IHRhbWFuaG87CiAgICBjaW4gPj4gdGFtYW5obzsgLypUYW1hbmhvIGRvIGFycmF5Ki8KICAgIGludCB2ZXRbdGFtYW5ob107CgogICAgZm9yIChpbnQgdCA9IDA7IHQgPCB0YW1hbmhvOyB0KyspIC8qQWRpY2lvbmEgY29pc2FzIG5vIGFycmF5Ki8KICAgIHsKICAgICAgICBjaW4gPj4gdmV0W3RdOwogICAgfQoKICAgIGZvciAoaW50IGYgPSB0YW1hbmhvIC0gMTsgZiA+PSAwOyBmLS0pIC8qSW1wcmltZSBvIHF1ZSB0ZW0gZGVudHJvIGRvIGFycmF5IGVtIG9yZGVtIGludmVyc2EqLwogICAgewogICAgICAgIGNvdXQgPDwgdmV0W2ZdIDw8ICIgIjsKICAgIH0KfQ==