#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int ind = -1, z = 0, o = 0;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == '0')
      z++;
    else if (s[i] == '1')
      o++;
    else {
      ind = i;
      break;
    }
  }
  for (int i = 0; i < z; i++) cout << 0;
  for (int i = 0; i < o; i++) cout << 1;
  if (ind != -1) {
    z = o = 0;
    for (int i = ind + 1; i < s.size(); i++) {
      if (s[i] == '1') o++;
    }
    for (int i = 0; i < o; i++) cout << 1;
    for (int i = ind; i < s.size(); i++) {
      if (s[i] == '2' || s[i] == '0') cout << s[i];
    }
  }
}
