#include <bits/stdc++.h>
using namespace std;
const int N = 100010;
int main() {
  char s[N];
  int num0 = 0, num1 = 0;
  cin >> s;
  int len = strlen(s);
  for (int i = len - 1; i >= 0; i--) {
    if (s[i] == '0')
      num0++;
    else {
      if (num1 >= num0)
        s[i] = '0';
      else
        num1++;
    }
  }
  cout << s << endl;
  return 0;
}
