#include <bits/stdc++.h>
using namespace std;
string str, txt;
int main() {
  while (cin >> str) {
    int ind = -1;
    int n = str.size();
    for (int i = n - 1; i >= 0; i--)
      if (str[i] == '2') ind = i;
    if (ind == -1) {
      sort(str.begin(), str.end());
      txt = str;
    } else {
      txt = "";
      for (int i = 0; i < ind; i++)
        if (str[i] == '0') txt += '0';
      for (int i = 0; i < n; i++)
        if (str[i] == '1') txt += '1';
      for (int i = ind; i < n; i++)
        if (str[i] != '1') txt += str[i];
    }
    cout << txt << endl;
  }
  return 0;
}
