#include <bits/stdc++.h>
using namespace std;
string s;
int main(void) {
  cin >> s;
  int n = s.length();
  int i = 0;
  while (i < n && s[i] != '0') i++;
  if (i == n)
    s.erase(1, 1);
  else
    s.erase(i, 1);
  cout << s;
  return 0;
}
