#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int n = s.length();
  int c1 = 0, c0 = 0;
  int k1 = -1;
  int k0 = -1;
  for (long long i = 0; i < n; i++) {
    if (s[i] == '1') {
      c1++;
      k1 = i;
    } else
      c0++;
  }
  for (long long i = 0; i < n; i++) {
    if (s[i] == '0') {
      k0 = i;
      break;
    }
  }
  if (c0 == 0 || c1 == 0) {
    for (long long i = 1; i < n; i++) cout << s[i];
    return 0;
  } else {
    for (long long i = 0; i < n; i++)
      if (i != k0) cout << s[i];
    return 0;
  }
  return 0;
}
