#include <bits/stdc++.h>
using namespace std;
const long long int N = 1e5 + 7;
const long long int MOD = 1e9 + 7;
const long long int INF = 1e9 + 5;
void solve(long long int kk) {
  string s;
  cin >> s;
  int one = 0;
  for (char i : s)
    if (i == '1') one++;
  string ans = "", allones = "";
  for (int j = 0; j < one; j++) allones.push_back('1');
  bool seen = false;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == '2' && !seen) {
      ans.append(allones);
      seen = true;
      ans.push_back('2');
    } else if (s[i] != '1') {
      ans.push_back(s[i]);
    }
  }
  if (!seen) ans.append(allones);
  cout << ans << "\n";
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int t = 1;
  for (long long int kk = 1; kk <= t; kk++) {
    solve(kk);
  }
}
