#include <bits/stdc++.h>
using namespace std;
const double EPS = 1e-9;
const int MOD = 1e9 + 7;
int dx[8] = {0, 0, 1, -1, -1, 1, -1, 1}, dy[8] = {1, -1, 0, 0, -1, -1, 1, 1};
void INPUT() {}
void OUTPUT() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
}
int main() {
  INPUT();
  OUTPUT();
  string s;
  cin >> s;
  string ans = "", s1 = "", s0 = "";
  for (int i = ((int)((s).size())) - 1; i >= 0; i--) {
    if (s[i] == '0') {
      ans += '0';
      s0 += '0';
    } else if (s[i] == '2') {
      ans += '2';
      s0 = "";
    } else {
      s1 += '1';
    }
  }
  cout << s0 + s1;
  int i = ((int)((ans).size())) - 1;
  while (ans[i] == '0') {
    i--;
  }
  while (i > -1) {
    cout << ans[i];
    i--;
  }
  return 0;
}
