#include <bits/stdc++.h>
using namespace std;
char s[100000] = {0};
int main() {
  int i, j, v, k, l, m, n, p, r, t, x, y, z, fl;
  scanf("%s", &s);
  n = strlen(s);
  fl = 0;
  for (i = 0; i < n; i++)
    if (s[i] == '0') {
      s[i] = 'a';
      fl = 1;
      break;
    }
  if (!fl) s[0] = 'a';
  for (i = 0; i < n; i++)
    if (s[i] != 'a') printf("%c", s[i]);
  printf("\n");
  return 0;
}
