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