#include <bits/stdc++.h>
using namespace std;
char a[100009];
void solve() {
  scanf("%s", a);
  int p = -1;
  for (int i = 0; a[i] != '\0'; i++) {
    if (a[i] == '0') {
      p = i;
      break;
    }
  }
  if (p == -1) {
    for (int i = 1; a[i] != '\0'; i++) putchar(a[i]);
    return;
  }
  for (int i = 0; i < p; i++) putchar(a[i]);
  for (int i = p + 1; a[i] != '\0'; i++) putchar(a[i]);
}
int main() {
  { solve(); }
  return 0;
}
