#include <bits/stdc++.h>
using namespace std;
long long ans = 1ll;
long long MOD = 1000000007;
std::vector<long long> g[51];
bool visited[51];
void dfs(long long i) {
  visited[i] = true;
  for (long long child : g[i]) {
    if (!visited[child]) {
      ans *= 2;
      dfs(child);
    }
  }
}
long long fact(long long k) {
  if (k == 1) return 1;
  return k * fact(k - 1);
}
int main() {
  string news;
  cin >> news;
  string s = "";
  int ones = 0;
  for (int i = 0; i < news.length(); ++i) {
    if (news[i] == '1')
      ones++;
    else
      s += news[i];
  }
  int trigger = 0;
  for (int i = 0; i < s.length(); ++i) {
    if (s[i] == '0')
      cout << s[i];
    else if (s[i] == '2' && trigger == 1)
      cout << "2";
    else if (s[i] = '2' && trigger == 0) {
      for (int j = 0; j < ones; ++j) {
        cout << "1";
      }
      cout << "2";
      trigger = 1;
    }
  }
  if (!trigger) {
    for (int i = 0; i < ones; ++i) {
      cout << '1';
    }
  }
  return 0;
}
