#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  int n = s.size();
  int cz = 0;
  int co = 0;
  int ct = 0;
  for (int i = 0; i < n; i++) {
    co += (s[i] == '1');
    ct += (s[i] == '2');
    cz += (s[i] == '0');
  }
  if (cz == 0 || ct == 0) {
    sort(s.begin(), s.end());
    cout << s << '\n';
    return 0;
  }
  if (co == 0) {
    cout << s << '\n';
    return 0;
  }
  string aux = "";
  int idx = -1;
  for (int i = 0; i < n; i++) {
    if (s[i] != '1') aux += s[i];
  }
  string res = "";
  int occ = -1;
  for (int i = 0; i < aux.size(); i++) {
    if (aux[i] == '2' && occ == -1) {
      while (co--) {
        res += '1';
      }
      res += aux[i];
      occ = 1;
    } else {
      res += aux[i];
    }
  }
  cout << res << '\n';
  return 0;
}
