#include <bits/stdc++.h>
using namespace std;
string s;
vector<int> v;
int a[100000 + 7];
int main() {
  cin >> s;
  s += '2';
  int o = 0, f = 0, p = -1;
  for (int i = 0; i < s.size(); i++) {
    a[i + 1] = (s[i] == '0');
    a[i + 1] += a[i];
    if (s[i] == '0' && p == -1) f++;
    if (s[i] == '1') o++;
    if (s[i] == '2') {
      if (p != -1) {
        v.push_back(a[i + 1] - a[p]);
      }
      p = i;
    }
  }
  while (f--) cout << "0";
  while (o--) cout << "1";
  for (auto x : v) {
    cout << "2";
    while (x--) cout << "0";
  }
}
