#include using namespace std; using LL = long long; void solve() { string s; cin >> s; int n = s.size(); if(s.size() == 1) { cout << (s[0] == '1' ? 0 : 1) << "\n"; return ; } else cout << s.substr(0,n - 1); cout << (s[0] == '1' ? 0 : 1) << "\n"; } int main() { ios::sync_with_stdio(false); cin.tie(0); int t; t = 1; while(t --) solve(); return 0; }