#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  string rez;
  cin >> s;
  int k = 0;
  if (s.length() == 1) {
    cout << s;
    return 0;
  }
  for (int i = 0; i < s.size(); i++) {
    if ((k == 0) && (i == s.size() - 1)) break;
    if ((s[i] == '0') && (k == 0))
      k++;
    else
      rez.push_back(s[i]);
  }
  int o = 0;
  for (int i = 0; i < rez.size(); i++) {
    if (((rez[i] == '0') && (o == 0)) && (i != rez.size() - 1)) continue;
    cout << rez[i];
    if (rez[i] == '1') o = 1;
  }
  return 0;
}
