#include <bits/stdc++.h>
using namespace std;
string s1, s2;
int main() {
  int i, j, k, len, loc = -1;
  cin >> s1;
  len = s1.length();
  for (i = 0; i < len; i++) {
    if (s1[i] == '0') {
      loc = i;
      break;
    }
  }
  if (loc >= 0) {
    for (i = 0; i < len; i++)
      if (i != loc) cout << s1[i];
    cout << endl;
  } else {
    for (i = 0; i < len - 1; i++) cout << s1[i];
    cout << endl;
  }
  return 0;
}
