#include <bits/stdc++.h>
using namespace std;
void err(istream_iterator<string> it) {}
template <typename T, typename... Args>
void err(istream_iterator<string> it, T a, Args... args) {
  cout << *it << " = " << a << endl;
  err(++it, args...);
}
const int mod = 1e9 + 7;
void solve() {
  string s;
  cin >> s;
  int len = ((int)(s).size()), ind = len, cnt = 0;
  bool flag = false;
  string temp = "";
  for (int i = 0; i < len; i++) {
    if (s[i] == '2' && !flag) {
      flag = true;
      ind = i;
    }
    if (flag && (s[i] == '2' || s[i] == '0')) {
      temp += s[i];
    } else if (flag)
      cnt++;
  }
  string ans = s.substr(0, ind);
  sort(ans.begin(), ans.end());
  for (int i = 0; i < cnt; i++) ans += '1';
  ans += temp;
  cout << ans;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  solve();
}
