#include <bits/stdc++.h>
using namespace std;
const long long nmax = 1e5 + 2;
vector<long long> v[nmax];
int main() {
  string s;
  cin >> s;
  string s1 = "", s2 = "", s3 = "";
  bool ok = 0;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == '1') {
      s1 += s[i];
    } else {
      if (s[i] == '2' && ok == 0) {
        ok = 1;
      }
      if (ok == 1) {
        s3 += s[i];
      }
      if (ok == 0) {
        s2 += s[i];
      }
    }
  }
  cout << s2 + s1 + s3 << endl;
  return 0;
}
