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