#include <bits/stdc++.h>
char arr[100005] = {0};
int main(void) {
  scanf("%s", arr);
  int len = strlen(arr), flag = 0, a = 0, b = 0, c = 0, target;
  int i;
  for (i = 0; i < len; i++) {
    if (arr[i] == '2' && flag == 0) {
      flag = 1;
      target = i;
    }
    if (arr[i] == '1') b++;
    if (arr[i] == '0' && flag == 0) a++;
  }
  for (i = 0; i < a; i++) printf("0");
  for (i = 0; i < b; i++) printf("1");
  for (i = target; i < len; i++)
    if (arr[i] != '1') printf("%c", arr[i]);
  printf("\n");
  return 0;
}
