#include <bits/stdc++.h>
using namespace std;
int main() {
  string second;
  cin >> second;
  vector<long long> v1, v2;
  long long n = second.size();
  long long cnt = 0;
  for (long long i = 0; i < n; i++) {
    if (second[i] == '1') cnt++;
  }
  long long flag = 0;
  for (long long i = 0; i < n; i++) {
    if (second[i] == '2') {
      if (flag == 0) {
        for (long long j = 0; j < cnt; j++) {
          cout << "1";
        }
        flag = 1;
      }
    }
    if (second[i] == '1') continue;
    cout << second[i];
  }
  if (flag == 0) {
    for (long long i = 0; i < cnt; i++) {
      cout << "1";
    }
  }
  cout << "\n";
}
