#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
char s[N];
int zer, jed, two;
int main() {
  scanf("%s", s);
  int wsk = 0;
  while (s[wsk]) {
    if (s[wsk] == '1') jed++;
    wsk++;
  }
  wsk = 0;
  while (s[wsk]) {
    if (s[wsk] == '0')
      zer++;
    else if (s[wsk] == '2') {
      while (zer) {
        zer--;
        printf("0");
      }
      while (jed) {
        jed--;
        printf("1");
      }
      printf("2");
    }
    wsk++;
  }
  while (zer) {
    zer--;
    printf("0");
  }
  while (jed) {
    jed--;
    printf("1");
  }
  return 0;
}
