#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int n, m, k, i, j, p, q, x, y, ans = 0, cnt = 0;
  string s;
  bool flag = false;
  cin >> s;
  n = s.size();
  x = 0;
  vector<char> v;
  for (i = 0; i < n; i++) {
    if (s[i] != '1')
      v.push_back(s[i]);
    else
      x++;
  }
  for (i = 0; i < v.size(); i++) {
    if (flag == false) {
      if (v[i] == '2') {
        flag = true;
        for (j = 0; j < x; j++) cout << 1;
        x = 0;
        cout << 2;
      } else
        cout << v[i];
    } else
      cout << v[i];
  }
  if (x != 0) {
    for (i = 0; i < x; i++) cout << 1;
  }
  cout << endl;
  return 0;
}
