#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string sn = "";
  int cnt = 0;
  bool found = false;
  int ind = 0;
  for (int i = 0; i < s.size(); i++) {
    char elem = s[i];
    if (elem == '1')
      cnt += 1;
    else
      sn.push_back(elem);
  }
  int n = sn.size();
  int pos = -1;
  while (pos + 1 < n && sn[pos + 1] == '0') ++pos;
  sn.insert(pos + 1, string(cnt, '1'));
  cout << sn << '\n';
  return 0;
}
