#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int n = s.size();
  vector<char> tmp;
  int cnt = 0;
  for (int i = 0; i < n; i++) {
    if (s[i] != '1')
      tmp.push_back(s[i]);
    else
      cnt++;
  }
  int tl = tmp.size();
  vector<char> ans;
  for (int i = 0; i < tl; i++) {
    if (tmp[i] == '2') {
      for (int j = 0; j < cnt; j++) {
        ans.push_back('1');
      }
      ans.push_back('2');
      cnt = 0;
    } else
      ans.push_back(tmp[i]);
  }
  while (cnt > 0) {
    ans.push_back('1');
    cnt--;
  }
  int l = ans.size();
  for (int i = 0; i < l; i++) cout << ans[i];
  cout << endl;
  return 0;
}
