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