func_code_string: #include <bits/stdc++.h>   using namespace std;   void file() {}   using lli = long long int;   using pii = pair<int, int>;   using vi = vector<int>;   using vvi = vector<vi>;   void solve() {     string s;     cin >> s;     string res =   ;     int z = 0, ones = 0, two = s.size();     for (int i = 0; i < s.size(); i++) {       int x = s[i] -  0 ;       if (x == 1) ones++;       if (x == 2 && two == s.size()) two = i;       if (x == 0 && two == s.size()) z++;     }     res += string(z,  0 );     res += string(ones,  1 );     for (int i = two; i < s.size(); i++) {       int x = s[i] -  0 ;       if (x == 1) continue;       res += s[i];     }     cout << res << endl;   }   int main() {     ios::sync_with_stdio(false);     cin.tie(nullptr);     solve();   }   