#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  vector<char> m;
  int p = 0, i, j = 0;
  cin >> s;
  for (i = 0; i < s.size(); i++) {
    if (s[i] == '0') {
      s[i] = '*';
      p = 1;
      break;
    }
  }
  if (p == 1) {
    while (s.size() != 0) {
      if (s[0] != '*') {
        m.push_back(s[0]);
      }
      s.erase(s.begin());
    }
  } else {
    while (s.size() != 1) {
      m.push_back(s[0]);
      s.erase(s.begin());
    }
  }
  for (i = 0; i < m.size(); i++) cout << m[i];
}
