#include <bits/stdc++.h>
using namespace std;
signed main() {
  string s;
  cin >> s;
  string kek;
  int cnt = 0;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] != '1') {
      kek += s[i];
    } else {
      cnt++;
    }
  }
  bool was = 0;
  for (int i = 0; i < kek.size(); i++) {
    if (kek[i] == '2' && !was) {
      was = 1;
      for (int j = 0; j < cnt; j++) {
        cout << '1';
      }
    }
    cout << kek[i];
  }
  if (!was) {
    for (int i = 0; i < cnt; i++) {
      cout << '1';
    }
  }
  return 0;
}
