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