#include <bits/stdc++.h>
using namespace std;
char s[100005];
int main() {
  cin >> s;
  int l = strlen(s);
  if (l == 1) {
    return 0;
  }
  int t = 0;
  for (int i = 0; i < l; ++i) {
    if (s[i] == '0' && t == 0) {
      t = 1;
      continue;
    }
    if (i == l - 1 && t == 0) continue;
    cout << s[i];
  }
  cout << endl;
  return 0;
}
