#include <bits/stdc++.h>
using namespace std;
int i, j, k, l, m;
string s;
int main() {
  cin >> s;
  for (i = 0; i < s.size(); i++)
    if (s[i] == '1') {
      k++;
    }
  if (k == s.size()) {
    for (i = 1; i < s.size(); i++) cout << "1";
  }
  if (k != s.size()) {
    m = 1;
    for (i = 0; i < s.size(); i++) {
      if (s[i] == '1') cout << "1";
      if (s[i] == '0' && m == 0) cout << "0";
      if (s[i] == '0' && m == 1) {
        m = 0;
      }
    }
  }
}
