#include <bits/stdc++.h>
using namespace std;
const int sz = 1500000;
const long long MAX = 10000000000000000;
template <typename T>
T abs(T a) {
  return a < 0 ? -a : a;
}
int main() {
  vector<vector<int> > mag(3, vector<int>(3));
  string s;
  cin >> s;
  int i = 0;
  while (i < s.length() && s[i] != '0') {
    i++;
  }
  if (i == s.length()) {
    i--;
  }
  for (long long j = 0; j < s.length(); j++) {
    if (j != i) cout << s[j];
  }
  cout << endl;
  return 0;
}
