#include <bits/stdc++.h>
using namespace std;
int i, j, n, m;
int l = 0, k = 0;
int x = 0, y = 0, X0, Y0, X1, Y1, X2, Y2;
int a[100000];
char s[100010] = {0};
int main() {
  scanf("%s", s);
  for (i = 0; s[i] != 0; i++)
    if (s[i] == '0') {
      break;
    }
  if (s[i] == 0) {
    s[i - 1] = 0;
    printf("%s", s);
  } else {
    s[i] = 0;
    printf("%s%s", s, s + i + 1);
  }
  return 0;
}
