#include <bits/stdc++.h>
using namespace std;
#pragma warning(disable : 4996)
const int INF = 1e9 + 1;
const long long LINF = 1e18 + 1;
const int MOD = 1000000007;
int main() {
  char str[100001];
  scanf("%s", str);
  int c = 0;
  int len = strlen(str);
  for (int i = len - 1; i >= 0; i--) {
    if (str[i] == '0')
      c++;
    else if (c)
      c--;
    else
      str[i] = '0';
  }
  printf("%s\n", str);
  return 0;
}
