#include <bits/stdc++.h>
using namespace std;
int main() {
  char s[100001];
  cin >> s;
  int i, l = strlen(s);
  int pos = -1;
  for (i = 0; i < l; i++)
    if (s[i] == '0') {
      pos = i;
      break;
    }
  if (pos == -1) pos = l - 1;
  for (i = 0; i < l; i++)
    if (i != pos) cout << s[i];
}
