#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int flag = 0;
  int pos;
  int num1 = 0;
  int num0 = 0;
  for (int i = 0; i < s.length(); i++) {
    if (flag == 0 && s[i] == '2') {
      flag = 1;
      pos = i;
    }
    if (s[i] == '1') num1++;
    if (flag == 0 && s[i] == '0') num0++;
  }
  for (int i = 0; i < num0; i++) {
    cout << "0";
  }
  for (int i = 0; i < num1; i++) {
    cout << "1";
  }
  for (int i = pos; i < s.length(); i++) {
    if (s[i] == '1') continue;
    cout << s[i];
  }
  cout << endl;
  return 0;
}
