#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string str, x = "";
  cin >> str;
  long long o = 0, l = 0;
  for (long long i = str.size() - 1; i >= 0; i--) {
    if (str[i] == '0')
      o++;
    else
      l++;
  }
  if (o == 0) {
    for (long long i = 0; i < str.size() - 1; i++) cout << str[i];
  } else {
    long long cnt = 0;
    for (long long i = 0; i < str.size(); i++) {
      if (str[i] == '0') cnt++;
      if (str[i] == '0' && cnt == 1)
        continue;
      else
        cout << str[i];
    }
  }
  cout << endl;
  return 0;
}
