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