#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int cnt1 = 0;
  int cnt2 = 0;
  int cnt3 = 0;
  int cnt4 = 0;
  int cnt = 0;
  int index = 0;
  string ans = "";
  string res = "";
  bool b = false;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == '0') cnt1++;
    if (s[i] == '1') cnt2++;
    if (s[i] == '2') {
      b = true;
      index = i;
      ans += "2";
    }
    if (s[i] == '0' && i > index && b) {
      cnt++;
      ans += "0";
    }
  }
  cnt1 -= cnt;
  while (cnt1 > 0) {
    res += "0";
    cnt1--;
  }
  while (cnt2 > 0) {
    res += "1";
    cnt2--;
  }
  res += ans;
  cout << res;
  return 0;
}
