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