#include <bits/stdc++.h>
using namespace std;
const int MAXN = 300000;
const int INF = (int)1e7;
const double eps = 1e-6;
const long long MOD = 1e9 + 7;
const double PI = M_PI;
string s;
int pos;
int main() {
  std::ios::sync_with_stdio(false);
  cin >> s;
  pos = 0;
  int n = s.size();
  while (s[pos] != '0' && pos < n) pos++;
  if (pos == n) {
    for (int i = 0; i < s.size() - 1; ++i) cout << s[i];
  } else {
    for (int i = 0; i < s.size(); ++i) {
      if (i == pos) continue;
      cout << s[i];
    }
  }
  return 0;
}
