#include <bits/stdc++.h>
using namespace std;
char str[100100];
int main() {
  cin >> str;
  int zero = 0, one = 0, two = 0;
  for (int i = 0; i < strlen(str); i++) {
    if (str[i] == '1') one++;
    if (str[i] == '2') two++;
    if (str[i] == '0') {
      if (two == 0) zero++;
    }
  }
  while (zero--) {
    cout << '0';
  }
  while (one--) {
    cout << '1';
  }
  two = 0;
  zero = 0;
  bool f = 0;
  for (int i = 0; i < strlen(str); i++) {
    if (str[i] == '2') {
      f = 1;
      two++;
    }
    if (str[i] == '0' && f) {
      if (two == 0)
        zero++;
      else {
        while (zero--) {
          cout << '0';
        }
        while (two--) {
          cout << '2';
        }
        zero = 1;
        two = 0;
      }
    }
  }
  while (zero--) {
    cout << '0';
  }
  while (two--) {
    cout << '2';
  }
}
