#include #include #include using namespace std; int main() { string s; cin>>s; reverse(begin(s), end(s)); for(auto& e: s) e^=2; cout<