#include <bits/stdc++.h>
using namespace std;
char s[100005];
long long l, f = 0;
template <typename T>
inline void read(T &x) {
  T c = getchar(), f = 0;
  for (; c < 48 || 57 < c; c = getchar())
    if (c == '-') f = 1;
  for (x = 0; 48 <= c && c <= 57; c = getchar())
    x = (x << 3) + (x << 1) + (c ^ 48);
  if (f) x = -x;
}
template <typename T>
inline void print(T x) {
  if (x < 0) x = -x, putchar('-');
  if (x > 9) print(x / 10);
  putchar(x % 10 + 48);
}
signed main() {
  scanf("%s", s), l = strlen(s) - 1;
  for (register long long i = 0; i < l; i++)
    if (s[i] ^ '1' && !f)
      f = 1;
    else
      putchar(s[i]);
  if (f) putchar(s[l]);
  return 0;
}
