#include <bits/stdc++.h>
using namespace std;
bool isPrime(long long n) {
  if (n == 1) return false;
  for (int i = 2; i * i <= n; ++i) {
    if (n % i == 0) return false;
  }
  return true;
}
int main() {
  ios_base::sync_with_stdio(0);
  string s, ans = "";
  cin >> s;
  bool flag = true;
  for (int i = 0; i < s.size(); ++i) {
    if (s[i] == '0' && flag == true) {
      flag = false;
      continue;
    } else {
      ans += s[i];
    }
  }
  if (flag == false) {
    cout << ans << endl;
    return 0;
  }
  for (int i = 0; i < s.size() - 1; ++i) {
    cout << s[i];
  }
  cout << endl;
  return 0;
}
