#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  long long cnt1 = 0, ind2 = 10000000;
  for (long long i = 0; i < s.size(); i++) {
    if (s[i] == '2') ind2 = min(ind2, i);
    if (s[i] == '1') cnt1++;
  }
  for (long long i = 0; i < min(ind2, (long long)s.size()); i++) {
    if (s[i] == '0') cout << s[i];
  }
  for (long long i = 0; i < cnt1; i++) cout << "1";
  for (long long i = ind2; i < s.size(); i++) {
    if (s[i] == '2' || s[i] == '0') cout << s[i];
  }
}
