#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 10;
string s;
int main() {
  cin >> s;
  int i, c0 = 0, c1 = 0;
  for (i = s.size() - 1; i >= 0; i--) {
    if (s[i] == '0') {
      c0++;
    } else {
      if (c1 >= c0)
        s[i] = '0';
      else
        c1++;
    }
  }
  cout << s << endl;
  return 0;
}
