#include <bits/stdc++.h>
using namespace std;
int main() {
  int j = -1;
  string s;
  cin >> s;
  for (int i = 0; i < s.size(); i++)
    if (s[i] == '0') {
      j = i;
      break;
    }
  if (j == -1)
    for (int i = 1; i < s.size(); i++) cout << s[i];
  else
    for (int i = 0; i < s.size(); i++)
      if (i != j) cout << s[i];
  cout << endl;
}
