#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  int i = 0;
  int num = 0;
  cin >> s;
  for (char &c : s) {
    if (c == '1') num++;
  }
  for (char &c : s) {
    if (c == '2' && num > 0) {
      while (num--) cout << "1";
    }
    if (c != '1') cout << c;
  }
  if (num > 0)
    while (num--) cout << "1";
  return 0;
}
