#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string ans = "";
  int cnt = 0;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == '1') {
      cnt++;
    } else {
      ans += s[i];
    }
  }
  if (cnt == 0) {
    cout << ans << endl;
    return 0;
  }
  int j = 0;
  while (ans[j] == '0' && j < ans.length()) {
    j++;
  }
  ans.insert(j, cnt, '1');
  cout << ans << endl;
}
