#include <bits/stdc++.h>
using namespace std;
bool sortbysec(const pair<int, int> &a, const pair<int, int> &b) {
  return (a.second < b.second);
}
bool sortby(const pair<int, int> &a, const pair<int, int> &b) {
  if (a.first < b.first)
    return true;
  else if (a.first > b.first)
    return false;
  else if (a.first == b.first) {
    if (a.second < b.second)
      return true;
    else
      return false;
  }
}
int main() {
  long long int y, m, a[3001] = {0}, count = 0, i, j, k, x = 0, n, sum = 0, h,
                      flag, b[3010];
  string s, s1;
  cin >> s;
  for (i = 0; i < s.length(); i++) {
    if (s[i] == '1') count++;
  }
  flag = 0;
  for (i = 0; i < s.length(); i++) {
    if (s[i] == '0')
      cout << "0";
    else if (s[i] == '1')
      continue;
    else if (s[i] == '2' && flag == 0) {
      for (j = 0; j < count; j++) cout << "1";
      cout << "2";
      flag = 1;
    } else if (s[i] == '2' && flag == 1) {
      cout << "2";
    }
  }
  if (flag == 0) {
    for (i = 0; i < count; i++) cout << "1";
    cout << "\n";
  }
  return 0;
}
