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