#include <bits/stdc++.h>
using namespace std;
int MAX(int a, int b) { return (a > b) ? a : b; }
double FMAX(double a, double b) { return (a > b) ? a : b; }
int MIN(int a, int b) { return (a < b) ? a : b; }
double FMIN(double a, double b) { return (a < b) ? a : b; }
int GCD(int a, int b) { return b ? GCD(b, a % b) : a; }
unsigned long long int UGCD(unsigned long long int a,
                            unsigned long long int b) {
  return b ? GCD(b, a % b) : a;
}
int LCM(int a, int b) { return a / GCD(a, b) * b; }
unsigned long long int LCM(unsigned long long int a, unsigned long long int b) {
  return a / GCD(a, b) * b;
}
void fswop(double &a, double &b) {
  double c = a;
  a = b;
  b = c;
}
void bez_swop(int &a, int &b) {
  int c = a;
  a = b;
  b = c;
}
void swop(int &a, int &b) {
  a = a ^ b;
  b = a ^ b;
  a = a ^ b;
}
long long int u(long long int a) {
  if (a >= 0) return a;
  return a * (-1);
}
char *c, mas[100010];
int main() {
  int i, j;
  cin >> mas;
  j = strlen(mas);
  for (i = 0; i < j - 1; i++) {
    if (mas[i] == '0') {
      c = &mas[i + 1];
      cout << c;
      return 0;
    }
    putc(mas[i], stdout);
  }
  return 0;
}
