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