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