#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int i, pos = -1, f2 = 0;
  for (i = 0; i < s.length(); i = i + 1) {
    if (s[i] == '2') {
      if (f2 == 0) {
        f2 = 1;
        pos = i;
      }
    }
  }
  if (pos == -1) {
    sort(s.begin(), s.end());
    cout << s << endl;
  } else {
    sort(s.begin(), s.begin() + pos);
    for (i = 0; i < pos; i = i + 1) {
      cout << s[i];
    }
    for (i = pos + 1; i < s.length(); i = i + 1) {
      if (s[i] == '1') {
        cout << s[i];
      }
    }
    for (i = pos; i < s.length(); i = i + 1) {
      if (s[i] != '1') {
        cout << s[i];
      }
    }
    cout << endl;
  }
}
