#include <bits/stdc++.h>
using namespace std;
void OUT_TST(string s, istream_iterator<string> it) { cerr << s; }
template <typename T, typename... Args>
void OUT_TST(string s, istream_iterator<string> it, T a, Args... args) {
  cerr << *it << "=" << a << " ";
  OUT_TST(s, ++it, args...);
}
template <class T>
void rd(T& ret) {
  ret = 0;
  bool ok = 0, u = 0;
  for (;;) {
    int c = getchar();
    if (c >= '0' && c <= '9')
      ret = (ret << 3) + (ret << 1) + c - '0', ok = 1;
    else if (c == '-')
      u = 1;
    else if (ok) {
      if (u) ret *= -1;
      return;
    }
  }
}
long long powmod(long long p, long long n, long long mod) {
  long long ret = 1;
  for (; n; n >>= 1) {
    if (n & 1) ret = ret * p % mod;
    p = p * p % mod;
  }
  return ret;
}
template <class T>
bool chmin(T& a, const T& b) {
  return b < a ? a = b, 1 : 0;
}
template <class T>
bool chmax(T& a, const T& b) {
  return b > a ? a = b, 1 : 0;
}
int gcd(int a, int b) { return b ? gcd(b, a % b) : a; }
const int N = (int)1e5 + 9;
int n, p;
char ans[N];
string s;
bool use[N];
int main() {
  cin >> s;
  n = ((int)(s).size());
  int t1 = 0, t2 = 0;
  for (int i = (0); i < (n); i++) {
    if (s[i] == '2') break;
    if (s[i] == '0') ++t1, use[i] = 1;
  }
  p = 0;
  for (int i = (0); i < (t1); i++) ans[p++] = '0';
  for (int i = (0); i < (n); i++) {
    if (s[i] == '1') ++t2, use[i] = 1;
  }
  for (int i = (0); i < (t2); i++) ans[p++] = '1';
  for (int i = (0); i < (n); i++)
    if (!use[i]) {
      ans[p++] = s[i];
    }
  ans[p] = 0;
  puts(ans);
  return 0;
}
