#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 10;
int a[maxn];
int main() {
  string s;
  cin >> s;
  int cnt0 = 0, cnt1 = 0, cnt2 = 0, cal0 = 0, cal2 = 0;
  int l = 0;
  bool first = true;
  for (int i = 0; i < s.size(); i++) {
    if (first && s[i] == '2') {
      first = false;
      a[l++] = 2;
      cal2++;
    } else if (!first && s[i] == '2')
      a[l++] = 2, cal2++;
    else if (!first && s[i] == '0')
      a[l++] = 0, cal0++;
    if (s[i] == '0')
      cnt0++;
    else if (s[i] == '1')
      cnt1++;
    else
      cnt2++;
  }
  for (int i = 0; i < cnt0 - cal0; i++) cout << "0";
  for (int i = 0; i < cnt1; i++) cout << "1";
  for (int i = 0; i < l; i++) {
    if (a[i] == 2)
      cout << "2";
    else
      cout << "0";
  }
  cout << endl;
  return 0;
}
