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