#include <bits/stdc++.h>
using namespace std;
long long mod = 1000000007;
int num[100010];
int main() {
  string second;
  cin >> second;
  int n = second.size();
  int one = 0;
  for (int i = 0; i < n; i++) {
    if (second[i] == '1') {
      one++;
    }
  }
  int cnt;
  for (int i = 0; i < n; i++) {
    if (second[i] == '2') {
      cnt = i;
      break;
    }
    if (second[i] == '0') {
      cout << second[i];
    }
  }
  for (int i = 0; i < one; i++) {
    cout << 1;
  }
  for (int i = cnt; i < n; i++) {
    if (second[i] != '1') {
      cout << second[i];
    }
  }
}
