#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int l = s.size();
  int c1 = 0;
  bool fr = true;
  for (int i = 0; i < l; i++) {
    if (s[i] == '1') c1++;
  }
  for (int i = 0; i < l; i++) {
    if (s[i] == '1') continue;
    if (s[i] == '0') {
      cout << 0;
    } else {
      if (fr) {
        fr = false;
        for (int j = 0; j < c1; j++) cout << 1;
      }
      cout << 2;
    }
  }
  if (fr) {
    for (int j = 0; j < c1; j++) cout << 1;
  }
  return 0;
}
