#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, j, k, t = 0, c, cnt = 0, m, a = 0, b = 0;
  string s, s2 = "";
  cin >> s;
  n = s.size();
  for (i = 0; i < n; i++) {
    if (s[i] == '1') s2 += s[i];
  }
  for (i = 0; i < n; i++) {
    if (s[i] != '1') s2 += s[i];
  }
  for (i = 0; i < n; i++) {
    if (s2[i] == '1')
      ++a;
    else if (s2[i] == '0') {
      cout << "0";
    } else {
      for (j = 0; j < a; j++) cout << "1";
      b = 0;
      a = 0;
      cout << s2[i];
    }
  }
  for (j = 0; j < a; j++) cout << "1";
}
