#include <bits/stdc++.h>
using namespace std;
const long long MOD = (long long)1e9 + 7;
int main() {
  string s;
  cin >> s;
  int cnt1 = 0;
  string t;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] != '1')
      t.push_back(s[i]);
    else
      cnt1++;
  }
  string S;
  for (int i = 0; i < cnt1; i++) S.push_back('1');
  S += t;
  bool f = false;
  vector<char> ans;
  for (int i = 0; i < s.length(); i++) {
    if (!f) {
      if (S[i] == '2') {
        f = true;
        sort(ans.begin(), ans.end());
        ans.push_back(S[i]);
      } else {
        ans.push_back(S[i]);
      }
    } else {
      ans.push_back(S[i]);
    }
  }
  if (!f) sort(ans.begin(), ans.end());
  for (int i = 0; i < ans.size(); i++) cout << ans[i];
  cout << endl;
}
