#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int n = s.length();
  if (s.length() == 1) {
    cout << s[0] << endl;
    return 0;
  }
  char a[n];
  int j = 0, flag = 0, ind = n;
  for (int i = 0; i < n; i++) {
    if (s[i] == '2' && flag == 0) {
      ind = i;
      flag = 1;
    }
    if (flag == 0 || (flag == 1 && s[i] == '1')) {
      a[j++] = s[i];
    }
  }
  for (int i = ind; i < n; i++) {
    if (s[i] == '0' || s[i] == '2') a[j++] = s[i];
  }
  int count0 = 0, count1 = 0;
  for (int i = 0; i < ind; i++) {
    if (a[i] == '0') count0++;
    if (a[i] == '1') count1++;
  }
  for (int i = 0; i < ind; i++) {
    if (i < count0) {
      a[i] = '0';
      ;
    }
    if (i >= count0 && i < count1 + count0) {
      a[i] = '1';
    }
  }
  for (int i = 0; i < n; i++) {
    cout << a[i];
  }
  cout << endl;
}
