include<bits/stdc++.h>

using namespace std;

int a[45];

int main()
{
for(int i = 1; i <= 10; i++)
{
cin >> a[i];
}
for(int i = 10; i >= 1; i--)
{
cout << a[i] << " ";
}
return 0;
}