#include <bits/stdc++.h>
using namespace std;
int a[100005], p[100005], res[100005];
int main() {
  int i, j, x, y, d, t;
  string s;
  cin >> s;
  d = s.length();
  for (i = 0; i < d; i++) {
    a[i + 1] = s[i] - '0';
    p[i + 1] = i + 2;
  }
  for (i = d; i >= 1; i--) {
    if (a[i] == 1 && a[p[i]] == 0 && p[i] != d + 1) {
      p[i - 1] = p[p[i]];
      res[i] = 1;
    }
  }
  for (i = 1; i <= d; i++) cout << res[i];
  return 0;
}
