#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int N = 1e5 + 5;
char buf[N], ans[N];
int main() {
  scanf("%s", buf);
  int n = strlen(buf);
  int z = 0, o = 0;
  ans[n] = '\0';
  for (int i = n - 1; ~i; --i) {
    if (buf[i] == '1') {
      if (++o <= z)
        ans[i] = '1';
      else {
        ++z;
        ans[i] = '0';
      }
    } else {
      ++z;
      ans[i] = '0';
    }
  }
  printf("%s\n", ans);
  return 0;
}
