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