#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:16777216")
using namespace std;
template <class F, class T>
T convert(F a, int p = -1) {
  stringstream ss;
  if (p >= 0) ss << fixed << setprecision(p);
  ss << a;
  T b;
  ss >> b;
  return b;
}
template <class T>
void print(T a, int p = -1) {
  if (p >= 0) cout << fixed << setprecision(p);
  cout << a;
}
template <class T>
bool isPrime(T a) {
  if (a == 1) return false;
  T n = (T)sqrt(a);
  for (T i = 2; i <= n; i++)
    if (a % i == 0) return false;
  return true;
}
template <class T>
T gcd(T a, T b) {
  T r;
  while (b != 0) {
    r = a % b;
    a = b;
    b = r;
  }
  return a;
}
template <class T>
T lcm(T a, T b) {
  return a / gcd(a, b) * b;
}
const int days[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
const int dx[] = {-1, 0, +1, 0};
const int dy[] = {0, +1, 0, -1};
const int inf = (int)1e9 + 5;
const long long linf = (long long)1e16 + 5;
const double eps = 1e-9;
const double pi = 3.141592654;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  string s;
  cin >> s;
  if ((int)s.find('0') == -1)
    cout << s.substr(0, ((int)(s).size()) - 1) << endl;
  else {
    s.erase(s.find('0'), 1);
    cout << s << endl;
  }
  return 0;
}
