#include <bits/stdc++.h>
using namespace std;
long long int gcd(long long int a, long long int b) {
  if (b == 0)
    return a;
  else
    return gcd(b, a % b);
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  string a;
  cin >> a;
  long long int pos = -1, c0 = 0, c1 = 0, c2 = 0;
  for (long long int i = 0; i < a.size(); i++) {
    if (a[i] == '2') {
      pos = i;
      break;
    }
  }
  for (long long int i = 0; i < a.size(); i++) {
    if (a[i] == '0') c0++;
    if (a[i] == '1') c1++;
    if (a[i] == '2') c2++;
  }
  if (c2 == 0) {
    sort(a.begin(), a.end());
    cout << a;
  } else {
    for (long long int i = 0; i < pos; i++) {
      if (a[i] == '0') cout << 0;
    }
    for (long long int i = 0; i < c1; i++) cout << 1;
    for (long long int i = pos; i < a.size(); i++) {
      if (a[i] != '1') cout << a[i];
    }
  }
}
