#include <bits/stdc++.h>
using namespace std;
const int maxn = 1111;
const int INF = 0x3f3f3f3f;
string str;
string ans;
int main() {
  std::ios::sync_with_stdio(false);
  std::cin.tie(0);
  cin >> str;
  int n0 = 0, n1 = 0, n2 = 0;
  int flag = 0;
  for (int i = 0; i < str.length(); ++i) {
    if (str[i] == '1') n1++;
  }
  for (int i = 0; i < str.length(); ++i) {
    if (str[i] == '1') continue;
    if (flag != str[i] && flag != 0) {
      for (int i = 0; i < n0; ++i) ans += '0';
      for (int i = 0; i < n1; ++i) ans += '1';
      for (int i = 0; i < n2; ++i) ans += '2';
      n0 = n1 = n2 = 0;
      if (str[i] == '0')
        n0++;
      else
        n2++;
      flag = str[i];
    } else {
      flag = str[i];
      if (str[i] == '0')
        n0++;
      else
        n2++;
    }
  }
  for (int i = 0; i < n0; ++i) ans += '0';
  for (int i = 0; i < n1; ++i) ans += '1';
  for (int i = 0; i < n2; ++i) ans += '2';
  cout << ans << endl;
  return 0;
}
