#include <bits/stdc++.h>
using namespace std;
char rem[100005];
int main() {
  scanf("%s", rem);
  int one = 0, two = 0, zero = 0;
  int l = strlen(rem);
  vector<char> lis;
  int flag = 0;
  for (int i = 0; i < l; i++) {
    if (rem[i] == '2') flag = 1;
    if (rem[i] == '2')
      lis.push_back('2');
    else if (rem[i] == '0' && flag == 1)
      lis.push_back('0');
    else if (rem[i] == '1')
      one++;
    else if (flag == 0)
      zero++;
  }
  while (zero > 0) {
    printf("0");
    zero--;
  }
  while (one > 0) {
    printf("1");
    one--;
  }
  for (int i = 0; i < lis.size(); i++) {
    printf("%c", lis[i]);
  }
  printf("\n");
}
