#include <bits/stdc++.h>
using namespace std;
char s[100010];
int main() {
  cin >> s;
  int n0 = 0, n1 = 0;
  bool has2 = false;
  for (int i = 0; s[i] != '\0'; i++) {
    if (s[i] == '0')
      n0++;
    else if (s[i] == '1')
      n1++;
    else if (s[i] == '2')
      has2 = true;
  }
  if (!has2) {
    for (int i = 0; i < n0; i++) cout << 0;
    for (int i = 0; i < n1; i++) cout << 1;
  } else {
    bool firstMet = true;
    for (int i = 0; s[i] != '\0'; i++) {
      if (s[i] == '0')
        cout << 0;
      else if (s[i] == '1')
        continue;
      else if (s[i] == '2') {
        if (firstMet) {
          firstMet = false;
          for (int j = 0; j < n1; j++) cout << 1;
          cout << 2;
        } else
          cout << 2;
      }
    }
  }
  cout << endl;
  return 0;
}
