#include <bits/stdc++.h>
using namespace std;
char s[100005];
int main() {
  scanf("%s", s);
  int m = strlen(s);
  int cnt1 = 0, cnt0 = 0;
  for (int i = m - 1; i >= 0; i--) {
    if (s[i] == '0')
      cnt0++;
    else {
      if (cnt1 >= cnt0)
        s[i] = '0';
      else
        cnt1++;
    }
  }
  printf("%s\n", s);
}
