#include <bits/stdc++.h>
int main() {
  char n, m;
  int j = 0;
  scanf("%c", &n);
  m = n;
  while (n != '\n') {
    scanf("%c", &n);
    if (n == '\n' && j == 0) {
      break;
    }
    if (m == '0' && j == 0) {
      j = 1;
    } else {
      printf("%c", m);
    }
    m = n;
  }
  return 0;
}
