#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9 + 5;
void solve() {
  string s;
  cin >> s;
  int cnt = 0;
  string t = "";
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == '1')
      cnt++;
    else
      t += s[i];
  }
  for (int i = 0; i < t.size(); i++) {
    if (t[i] == '2') {
      for (int j = 0; j < cnt; j++) cout << 1;
      cnt = 0;
    }
    cout << t[i];
  }
  for (int i = 0; i < cnt; i++) cout << 1;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  int t = 1;
  while (t--) solve();
}
