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