#include <bits/stdc++.h>
using namespace std;
pair<int, int> p[101];
int c;
bool check(double s) {
  stringstream ss;
  ss << s;
  string t = ss.str();
  int c = t.find(".");
  if (c != -1)
    for (int i = c + 1; i < t.length(); i++) {
      if (t[i] > '0') {
        return 1;
      }
    }
  return 0;
}
int main() {
  string s;
  cin >> s;
  string ans;
  int x = s.find("0");
  if (x != -1) {
    for (int i = 0; i < s.length(); i++) {
      if (i != x) ans += s[i];
    }
    cout << ans << endl;
  } else {
    cout << s.substr(1) << endl;
  }
}
