#include <bits/stdc++.h>
using namespace std;
int main() {
  std::ios::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
  string s;
  cin >> s;
  int flag = 0;
  for (long long i = 0; i < s.size() - 1; i++) {
    if (s[i] == '0' && s[i + 1] == '1') {
      s.erase(i, 1);
      flag = 1;
      break;
    }
  }
  if (flag == 0) {
    for (long long i = s.size() - 1; i >= 0; i--) {
      if (s[i] == '0') {
        flag = 1;
        s.erase(i, 1);
        break;
      }
    }
  }
  if (flag == 0) {
    for (long long i = s.size() - 1; i >= 0; i--) {
      if (s[i] == '1') {
        flag = 1;
        s.erase(i, 1);
        break;
      }
    }
  }
  cout << s;
}
