#include <bits/stdc++.h>
using namespace std;
string Str;
int Solve(void);
int main() {
  ios_base::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr);
  ;
  cin >> Str;
  Solve();
  return 0;
}
int Solve(void) {
  if (Str.find("0") == string ::npos) {
    return cout << Str.substr(0, Str.length() - 1), 0;
  }
  int yes = 0;
  for (int i = 0; i < Str.length(); ++i) {
    if (Str[i] == '0' && !yes) {
      yes = 1;
      continue;
    }
    cout << Str[i];
  }
  return 0;
}
