#include <bits/stdc++.h>
using namespace std;
template <typename Arg1>
void ZZ(const char* name, Arg1&& arg1) {
  cerr << name << " = " << arg1 << "\n";
}
template <typename Arg1, typename... Args>
void ZZ(const char* names, Arg1&& arg1, Args&&... args) {
  const char* comma = strchr(names + 1, ',');
  cerr.write(names, comma - names) << " = " << arg1;
  ZZ(comma, args...);
}
signed main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  string s;
  cin >> s;
  long long c = count(s.begin(), s.end(), '1');
  string ans;
  bool f = 0;
  for (long long i = (0); i < ((long long)(s.size())); i++) {
    if (s[i] == '1') continue;
    if (s[i] == '0') {
      ans.push_back('0');
    } else {
      if (!f) {
        for (long long j = (0); j < (c); j++) ans.push_back('1');
        f = 1;
      }
      ans.push_back(s[i]);
    }
  }
  if (!f) {
    for (long long j = (0); j < (c); j++) ans.push_back('1');
    f = 1;
  }
  cout << ans;
}
