#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int liczby[100000];
for (int i = 0; i < n; ++i) {
cin >> liczby[i];
}
for (int i = n / 2-1; i >= 0; i--) {
cout << liczby[i] << " ";
}
for (int i = n-1; i >= n / 2; i--) {
cout << liczby[i] << " ";
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgICAKICAgIGludCBuOwogICAgY2luID4+IG47CiAKICAgIGludCBsaWN6YnlbMTAwMDAwXTsKIAogICAgZm9yIChpbnQgaSA9IDA7IGkgPCBuOyArK2kpIHsKICAgICAgICBjaW4gPj4gbGljemJ5W2ldOwogICAgfQogCiAgICBmb3IgKGludCBpID0gbiAvIDItMTsgaSA+PSAwOyBpLS0pIHsKICAgICAgICBjb3V0IDw8IGxpY3pieVtpXSA8PCAiICI7CiAgICB9CiAKICAgIGZvciAoaW50IGkgPSBuLTE7IGkgPj0gbiAvIDI7IGktLSkgewogICAgICAgIGNvdXQgPDwgbGljemJ5W2ldIDw8ICIgIjsKICAgIH0KIAogICAgcmV0dXJuIDA7Cn0=