#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 10;
string s;
int n, a[N];
int one, zero;
int b[N], cnt;
int ans[N];
int main() {
  cin >> s;
  n = (int)s.size();
  for (int i = 0; i < (int)s.size(); i++) a[i + 1] = s[i] - '0';
  for (int i = 1; i <= n; i++)
    if (a[i] == 1) one++;
  for (int i = 1; i <= one; i++) b[i] = 1;
  cnt = one;
  for (int i = 1; i <= n; i++)
    if (a[i] != 1) b[++cnt] = a[i];
  for (int i = one + 1; i <= n; i++) {
    if (b[i] == 0)
      zero++;
    else if (b[i] == 2)
      break;
  }
  for (int i = 1; i <= zero; i++) ans[i] = 0;
  for (int i = zero + 1; i <= zero + one; i++) ans[i] = 1;
  for (int i = zero + one + 1; i <= n; i++) ans[i] = b[i];
  for (int i = 1; i <= n; i++) printf("%d", ans[i]);
  puts("");
  return 0;
}
