#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t;
  t = 1;
  while (t--) {
    long long i, j, len, c1 = 0;
    string str;
    cin >> str;
    len = str.length();
    for (i = 0; i < len; i++)
      if (str[i] == '1') c1++;
    for (i = 0; i < len; i++) {
      if (str[i] == '2')
        break;
      else if (str[i] == '0')
        cout << "0";
    }
    for (j = 0; j < c1; j++) cout << "1";
    for (j = i; j < len; j++) {
      if (str[j] == '1')
        continue;
      else
        cout << str[j];
    }
    cout << endl;
  }
  return 0;
}
