#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  string s;
  cin >> s;
  bool found = false;
  for (int i = 0; i < s.length(); i++) {
    if (i == s.length() - 1 && !found) continue;
    if (s[i] == '0' && !found)
      found = true;
    else
      cout << s[i];
  }
  return 0;
}
