#include <bits/stdc++.h>
using namespace std;
inline string IS(int a) {
  char x[100];
  sprintf(x, "%d", a);
  string s = x;
  return s;
}
inline int SI(string a) {
  char x[100];
  int res;
  strcpy(x, a.c_str());
  sscanf(x, "%d", &res);
  return res;
}
string s;
bool cmp(int x, int y) { return x > y; }
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> s;
  bool tanda = true;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == '0' && tanda) {
      tanda = false;
      s[i] = '3';
    }
  }
  if (tanda) {
    for (int i = 1; i < s.length(); i++) {
      cout << s[i];
    }
    cout << endl;
  } else {
    for (int i = 0; i < s.length(); i++) {
      if (s[i] != '3') cout << s[i];
    }
    cout << endl;
  }
  return 0;
}
