#include <iostream>
#include<stack>
using namespace std;
int main()
{
stack<int>v;
int a;
while(cin>>a)
{
v.push(a);
}
v.pop();
while(!v.empty())
{
cout<<v.top()<<" ";
v.pop();
}
return 0;
}



京公网安备 11010502036488号