#include <bits/stdc++.h>
using namespace std;
const int N = 123456;
const int mod = 1e9 + 7;
bool sortbyfunc(const pair<int, int> &a, const pair<int, int> &b) {
  return a.second < b.second;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  string second;
  cin >> second;
  int n = second.size();
  bool deleted = false;
  for (int i = 0; i < n - 1; i++) {
    if (deleted)
      cout << second[i];
    else {
      if (second[i] == '0')
        deleted = true;
      else
        cout << second[i];
    }
  }
  if (deleted) cout << second[n - 1] << endl;
  return 0;
}
