#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  int n = s.size();
  vector<int> a;
  int ones = 0;
  for (int i = 0; i < n; ++i)
    if (s[i] == '1') ++ones;
  string ans;
  for (int i = 0; i < n; ++i) {
    if (s[i] == '2') {
      for (int j = 0; j < ones; ++j) ans += '1';
      ones = 0;
    }
    if (s[i] != '1') ans += s[i];
  }
  if (ones) {
    for (int j = 0; j < ones; ++j) ans += '1';
  }
  cout << ans << "\n";
  return 0;
}
