#include <bits/stdc++.h>
using namespace std;
const long long int mod = 1e9 + 7;
char ch[200005];
char ss1[200005], ss2[200005], ss3[200005];
int main() {
  ios::sync_with_stdio(false);
  cin >> ch;
  int flag = 0;
  int i, j;
  int x = 0, y = 0, z = 0;
  int len = strlen(ch);
  for (i = 0; i < len; i++) {
    if (ch[i] == '1') {
      ss1[x] = '1';
      x++;
    } else if (ch[i] == '0') {
      if (flag == 0) {
        ss2[y] = '0';
        y++;
      } else {
        ss3[z] = '0';
        z++;
      }
    } else {
      if (flag == 0) {
        flag = 1;
      }
      ss3[z] = '2';
      z++;
    }
  }
  ss1[x] = '\0';
  ss2[y] = '\0';
  ss3[z] = '\0';
  cout << ss2 << ss1 << ss3 << endl;
}
