#include <bits/stdc++.h>
using namespace std;
const int maxn = 100010;
string s;
int main() {
  while (cin >> s) {
    int len = s.length();
    int cnt0 = 0, cnt1 = 0, cnt2 = 0;
    for (int i = 0; i < len; i++) {
      if (s[i] == '1') cnt1++;
      if (s[i] == '2') cnt2++;
      if (s[i] == '0') cnt0++;
    }
    for (int i = 0; i < len; i++) {
      if (s[i] == '0') {
        cout << 0;
      }
      if (s[i] == '1') continue;
      if (s[i] == '2') {
        while (cnt1 > 0) {
          cout << 1;
          cnt1--;
        }
        cout << 2;
      }
    }
    while (cnt1 > 0) {
      cout << 1;
      cnt1--;
    }
    cout << endl;
  }
  return 0;
}
