#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  cin >> str;
  reverse(str.begin(), str.end());
  int zeroes = -1;
  int i = 0;
  while (str[i] != '\0') {
    if (str[i] == '0') {
      zeroes = i;
    }
    i++;
  }
  if (zeroes != -1) {
    int i = 0;
    string result = "";
    while (str[i] != '\0') {
      if (i != zeroes) result = result + str[i];
      i++;
    }
    reverse(result.begin(), result.end());
    cout << result << endl;
  } else {
    int count = str.length();
    string temp = "";
    for (int i = 0; i < count - 1; i++) temp += '1';
    cout << temp << endl;
  }
}
