#include <bits/stdc++.h>
using namespace std;
int ans;
int k;
int main() {
  string s;
  cin >> s;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == '1') {
      ans++;
    }
  }
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == '0') {
      cout << 0;
      continue;
    }
    if (s[i] == '1') {
      continue;
    }
    if (s[i] == '2') {
      if (k == false) {
        for (int j = 1; j <= ans; j++) {
          cout << 1;
        }
        k = true;
      }
      cout << 2;
    }
  }
  if (k == false) {
    for (int i = 1; i <= ans; i++) {
      cout << 1;
    }
  }
}
