#include <bits/stdc++.h>
using namespace std;
int n, b[3];
char s[100005], c[100005];
int a[100005], tot;
int main() {
  scanf("%s", s + 1);
  n = strlen(s + 1);
  for (int i = 1; i <= n; ++i) {
    b[s[i] - '0']++;
    if (s[i] == '2') a[++tot] = b[0], b[0] = 0;
  }
  a[++tot] = b[0];
  for (int i = 1; i <= a[1]; i++) c[i] = '0';
  for (int i = a[1] + 1; i <= a[1] + b[1]; i++) c[i] = '1';
  int la = a[1] + b[1] + 1;
  for (int i = 2; i <= tot; ++i) {
    c[la++] = '2';
    b[2]--;
    for (int j = la; j <= la + a[i] - 1; j++) c[j] = '0';
    la += a[i];
  }
  for (int i = la; i <= n; ++i) c[i] = '2';
  printf("%s\n", c + 1);
  return 0;
}
