#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base ::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int test = 1;
  while (test--) {
    string s;
    cin >> s;
    int l = s.length(), i = 0;
    bool pos = false;
    for (; i < l - 1; i++) {
      if (s[i] == '0') {
        i++;
        pos = true;
        break;
      }
      cout << s[i];
    }
    if (pos)
      while (i < l) {
        cout << s[i++];
      }
  }
  return 0;
}
