#include <bits/stdc++.h>
using namespace std;
void printseq(int &zc, int &oc, int &tc) {
  while (zc > 0) {
    cout << 0;
    zc--;
  }
  while (oc > 0) {
    cout << 1;
    oc--;
  }
  while (tc > 0) {
    cout << 2;
    tc--;
  }
}
int main() {
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  int m = s.length(), oc = 0, tc = 0;
  for (int i = 0; i < m; i++) {
    if (s[i] == '1') {
      oc++;
    }
  }
  for (int i = 0; i < m; i++) {
    if (s[i] == '0') {
      cout << 0;
    } else if (s[i] == '2') {
      if (tc == 0) {
        for (int j = 0; j < oc; j++) {
          cout << 1;
        }
      }
      cout << 2;
      tc++;
    }
  }
  if (tc == 0) {
    for (int j = 0; j < oc; j++) {
      cout << 1;
    }
  }
  cout << endl;
  return 0;
}
