//#pragma GCC optimize("Ofast,unroll-loops") // let the chaos begin! //#pragma GCC target("avx,avx2,fma,tune=native") //#pragma GCC comment(linker, "/stack:200000000") #include using namespace std; #define int int64_t #define fi first #define se second mt19937_64 gen(chrono::steady_clock::now().time_since_epoch().count()); const int N = 2e5 + 5; void solve(){ string s; cin >> s; cout << s.substr(0,s.size() - 1) << (s[s.size() - 1] == '1' ? '0' : '1'); } int32_t main() { #ifdef LOCAL freopen ("input.txt", "r", stdin); freopen ("output.txt", "w", stdout); #endif //LOCAL ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0); int qq = 1; // cin >> qq; while(qq--){ solve(); } return 0; }