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