#include <bits/stdc++.h>
using namespace std;
static const int INF = 500000000;
template <class T>
void debug(T a, T b) {
  for (; a != b; ++a) cerr << *a << ' ';
  cerr << endl;
}
char s[100005];
int main() {
  scanf("%s", s);
  int len = strlen(s);
  int flag = 0;
  for (int i = 0; i < len; ++i) {
    if (flag == 0 && i == len - 1) continue;
    if (s[i] == '1')
      putchar('1');
    else if (!flag)
      flag = 1;
    else
      putchar('0');
  }
  putchar('\n');
  return 0;
}
