#include <bits/stdc++.h>
using namespace std;
void c_p_c() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
int32_t main() {
  c_p_c();
  string str;
  getline(cin, str);
  vector<long long> vec;
  long long z = 1;
  for (long long i = 0; i < str.length(); i++) {
    if (str[i] == '1') {
      z = 0;
    } else if (z == 1 && str[i] == '0') {
      continue;
    }
    vec.push_back((long long)str[i] - '0');
  }
  long long sig = 1;
  long long csz = 0, sz = vec.size();
  for (auto ele : vec) {
    csz++;
    if (sig == 1 && ele == 0) {
      sig = 0;
      continue;
    }
    if (sz == csz && sig == 1) {
      continue;
    }
    cout << ele;
  }
  return 0;
}
