#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  int ones_num, first_two;
  cin >> s;
  ones_num = 0;
  for (int i = 0; i < s.length(); ++i) {
    if (s[i] == '1') {
      ++ones_num;
      s.erase(s.begin() + i);
      --i;
    }
  }
  string ones(ones_num, '1');
  first_two = s.find('2');
  if (first_two != -1) {
    s.insert(first_two, ones);
  } else {
    s.insert(s.length(), ones);
  }
  cout << s << endl;
  return 0;
}
