#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  long long int n = s.size(), i = 0, j, c0, c1, c2, t = 0;
  vector<char> a;
  while (i < n) {
    if (t == 0) {
      j = i;
      c0 = 0;
      c1 = 0;
      while ((s[j] == '0' || s[j] == '1') && i < n) {
        if (s[j] == '0') {
          c0++;
        }
        if (s[j] == '1') {
          c1++;
        }
        j++;
      }
      if (s[j] == '2' && i < n) {
        t = 1;
      }
      i = j;
      j = c0;
      while (j > 0) {
        cout << 0;
        j--;
      }
      j = c1;
      while (j > 0) {
        cout << 1;
        j--;
      }
      c1 = 0;
    }
    if (t == 1) {
      c0 = 0;
      c2 = 0;
      if (s[i] == '2') {
        j = i;
        while (j < n) {
          if (s[j] == '0') {
            c0++;
          }
          if (s[j] == '1') {
            c1++;
          }
          if (s[j] == '2') {
            c2++;
            if (c0 > 0) {
              c2--;
              break;
            }
          }
          j++;
        }
      }
      i = j;
      j = c2;
      while (j > 0) {
        a.push_back('2');
        j--;
      }
      j = c0;
      while (j > 0) {
        a.push_back('0');
        j--;
      }
    }
  }
  for (i = 0; i < c1; i++) {
    cout << 1;
  }
  for (i = 0; i < a.size(); i++) {
    cout << a[i];
  }
}
