#include <bits/stdc++.h>
using namespace std;
char num[100005], ans[100005];
int main() {
  int q = -1, s = 0, flag = 0, w = 0, g, f;
  scanf("%s", num);
  for (int i = 0; num[i] != '\0'; i++) {
    if (num[i] == '0' && flag == 0)
      ans[++q] = num[i];
    else if (num[i] == '1' && flag == 0)
      s++;
    else if (num[i] == '2' && flag == 0) {
      flag = 1;
      for (int j = 1; j <= s; j++) {
        ans[++q] = '1';
      }
      s = 0;
      g = 1;
    } else if (num[i] == '1' && flag == 1) {
      s++;
    } else if (num[i] == '2' && flag == 1) {
      g++;
    }
  }
  if (flag == 0) {
    for (int i = 1; i <= s; i++) ans[++q] = '1';
  } else {
    int v = q;
    for (int i = q + 1; num[i] != '\0'; i++) {
      if (num[i] == '1') {
        ans[++q] = num[i];
      }
    }
    for (int i = v + 1; num[i] != '\0'; i++) {
      if (num[i] != '1') ans[++q] = num[i];
    }
  }
  ans[++q] = '\0';
  printf("%s", ans);
}
