#include <bits/stdc++.h>
using namespace std;
int main()
{
int i=1,number=0;
stack<int> a;
while(i!=0)
{
cin >> i;
a.push(i);
number++;
}
a.pop();
if(!a.empty())
{
for(int x=0;x<number;x++)
{
cout << a.top() << " ";
a.pop();
}
}
return 0;
}
求助大佬,萌萌哒~~(此处非卖萌)~~。