#include <bits/stdc++.h>
using namespace std;
int const N = 1e5 + 5, M = 8, OO = 0x3f3f3f3f;
string s;
int n;
bool temp;
int main() {
  cin >> s;
  n = s.size();
  for (int i = 0; i < n - 1; i++) {
    if (!temp && s[i] == '0')
      temp = 1;
    else
      printf("%c", s[i]);
  }
  if (temp) printf("%c", s[n - 1]);
  return 0;
}
