#include <bits/stdc++.h>
using namespace std;
char str[10000001];
int a[10000001];
int main() {
  while (gets(str) != NULL) {
    memset(a, 0, sizeof(a));
    int lenth = strlen(str);
    for (int i = 0; i < lenth; i++) {
      if (str[i] == '0') {
        for (int j = i; j < lenth; j++) {
          str[j] = str[j + 1];
        }
        break;
      }
    }
    for (int i = 0; i < lenth - 1; i++) {
      a[i] = str[i] - '0';
      printf("%d", a[i]);
    }
    printf("\n");
    memset(str, 0, sizeof(str));
  }
  return 0;
}
