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