#include <iostream>
using namespace std;
typedef long long ll;
string work(ll t){
string s = "";
while(t){
s += (t % 10) + '0';
t /= 10;
}
string res = "";
int i = 0;
while(s[i] == '0') i ++ ;
while(i < s.size()){
res += s[i];
i ++ ;
}
return res.size() == 0 ? "0" : res;
}
int main(){
ll n; cin >> n;
if(n < 0){
n = -n;
cout << '-';
}
cout << work(n) << endl;
return 0;
}