#include<bits/stdc++.h>
using namespace std;
int n;
string in;
int main()
{
cin>>in;
if(in[0]=='-')
{
cout<<'-';
}
for(int i=in.length()-1;i>=0;i--)
{
if(in[in.length()-1]=='0')
{
cout<<in[i-1];
}
else cout<<in[i];
}
return 0;
}
输入末尾是0的负数时,输出最后总有一个负号,不知道怎么去掉