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