#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int t = 0, z = 0;
  vector<int> v;
  for (long long int i = s.size() - 1; i >= 0; i--) {
    if (s[i] == '0')
      z++;
    else if (s[i] == '1')
      t++;
    else {
      while (z--) v.push_back(0);
      v.push_back(2);
      z = 0;
    }
  }
  while (t--) v.push_back(1);
  while (z--) v.push_back(0);
  reverse(v.begin(), v.end());
  for (long long int i = 0; i < s.size(); i++) cout << v[i];
  return 0;
}
