#include <bits/stdc++.h>
int main() {
  char str[100005], m[100005], n[100005], p[100005];
  gets(str);
  long int i, j = 0, k = 0, l = 0;
  for (i = 0; str[i] != '\0'; i++) {
    if (str[i] == '0') {
      if (l == 0) {
        m[j] = str[i];
        j++;
      } else {
        p[l] = str[i];
        l++;
      }
    }
    if (str[i] == '1') {
      n[k] = str[i];
      k++;
    }
    if (str[i] == '2') {
      p[l] = str[i];
      l++;
    }
  }
  m[j] = '\0';
  n[k] = '\0';
  p[l] = '\0';
  printf("%s%s%s\n", m, n, p);
  return 0;
}
