#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int l = s.size();
  int count = 0;
  for (int i = 0; i < l; i++) {
    if (s[i] == '1') {
      count++;
    }
  }
  for (int i = 0; i < l; i++) {
    if (s[i] == '2') {
      while (count > 0) {
        cout << 1;
        count--;
      }
      cout << s[i];
    } else if (s[i] == '0') {
      cout << s[i];
    }
  }
  while (count > 0) {
    cout << 1;
    count--;
  }
}
