#include <bits/stdc++.h>
int main() {
  char a[100001];
  long long n, num;
  while (~scanf("%s", a)) {
    num = 0;
    n = strlen(a);
    for (long i = 0; i < n; i++) {
      if (a[i] == '1') {
        num++;
      }
    }
    for (long i = 0; i < n; i++) {
      if (a[i] == '2' && num > 0) {
        while (num--) {
          printf("%c", '1');
        }
      }
      if (a[i] != '1') {
        printf("%c", a[i]);
      }
    }
    if (num > 0) {
      while (num--) {
        printf("%c", '1');
      }
    }
    printf("\n");
  }
  return 0;
}
