#include <bits/stdc++.h>
using namespace std;
int len, cnt;
char s[100010];
int main() {
  scanf("%s", s);
  len = strlen(s);
  for (int i = len - 1; i >= 0; i--) {
    if (s[i] == '0')
      cnt++;
    else if (cnt)
      cnt--;
    else
      s[i] = '0';
  }
  puts(s);
  return 0;
}
