#include #define rep(i,n) for (int i = 0; i < (n) ; ++i) using namespace std; typedef long long ll; int main () { string s; cin >> s; int n = s.size(); rep(i,n){ if(s[i]=='0') s[i]='1'; else s[i]='0'; } cout << s; return 0; }