#include<iostream>
#include<vector>
using namespace std;
int main()
{
int n;
cin >> n;
int* arr = new int [n];
for (int i = 0; i < n; i++)
{
cin >> arr[i];
}
for (int i = 0; i < n / 2; i++)
{
int t = arr[i];
arr[i] = arr[n - 1 - i];
arr[n - 1 - i] = t;
}
for (int i = 0; i < n; i++)
{
cout << arr[i] << " ";
}
}
I2luY2x1ZGU8aW9zdHJlYW0+CiNpbmNsdWRlPHZlY3Rvcj4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCgppbnQgbWFpbigpCnsKCWludCBuOwoJY2luID4+IG47CglpbnQqIGFyciA9IG5ldyBpbnQgW25dOwoJZm9yIChpbnQgaSA9IDA7IGkgPCBuOyBpKyspCgl7CgkJY2luID4+IGFycltpXTsKCX0KCQoJZm9yIChpbnQgaSA9IDA7IGkgPCBuIC8gMjsgaSsrKQoJewoJCWludCB0ID0gYXJyW2ldOwoJCWFycltpXSA9IGFycltuIC0gMSAtIGldOwoJCWFycltuIC0gMSAtIGldID0gdDsKCX0KCglmb3IgKGludCBpID0gMDsgaSA8IG47IGkrKykKCXsKCQljb3V0IDw8IGFycltpXSA8PCAiICI7Cgl9Cn0=