https://www.acwing.com/problem/content/447/
#include<cstdio>
#include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main(void)
{
string s; cin>>s;
if(s[0]=='-') cout<<'-',s=s.substr(1);//去除第一位
reverse(s.begin(),s.end());
while(s.size()>1&&s[0]=='0') s=s.substr(1);//去除前导零
cout<<s<<endl;
return 0;
}