#include // #include // #include using namespace std; // using namespace atcoder; #define SZ(x) (int)(x).size() #define dout(x) printf("%.10f\n", (double)(x)) #define ALL(s) (s).begin(), (s).end() #define so(V) sort(ALL(V)) #define rev(V) reverse(ALL(V)) typedef pair P; typedef pair Pl; typedef vector> vvi; typedef vector> vvl; int main() { string S; cin >> S; if (S[SZ(S) - 1] == '0') { S[SZ(S) - 1] = '1'; } else { S[SZ(S) - 1] = '0'; } cout << S << endl; return 0; }