请原谅我这个弱智蒟蒻罢
#include <algorithm>
#include <iostream>
#include <string>
#include <cmath>
using namespace std;
int main()
{
int n;
cin>>n;
if(n<0)
{
cout<<"-";
}
n=abs(n);
string s=to_string(n);
reverse(s.begin(),s.end());
int i=0;
while(i<s.size()-1 && s[i]=='0')
{
i++;
}
while(i<s.size())
{
cout<<s[i];
i++;
}
return 0;
}