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