#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, x;
  cin >> s;
  int count = 0, sz = s.size();
  for (int i = 0; i < sz; ++i)
    if (s[i] == '1') ++count;
  for (int i = 0; i < sz; ++i) {
    if (s[i] == '0')
      x += '0';
    else if (s[i] == '2') {
      while (count-- > 0) x += '1';
      x += '2';
    }
  }
  while (count-- > 0) x += '1';
  cout << x;
  return (0);
}
