#include using namespace std; int main() { string s; cin >> s; s.back() = 1 - (s.back() - '0') + '0'; cout << s << endl; }