#include <bits/stdc++.h>using namespace std;int main(){ string s; cin>>s; reverse(s.begin(),s.end()); while(s[0]=='0' && s.length()!=1){ s=s.substr(1); } cout<<s;
}