#include <bits/stdc++.h>
using namespace std;
void solve() {
  string s;
  cin >> s;
  string ans = "";
  int cnt(0);
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == '0' && cnt == 0) {
      cnt++;
    } else
      ans += s[i];
  }
  if (cnt == 0) {
    for (int i = 0; i < ans.size() - 1; i++) cout << ans[i];
  } else
    cout << ans;
}
int main() {
  long long t;
  t = 1;
  while (t--) solve();
  return 0;
}
