#include <bits/stdc++.h>
using namespace std;
void start() {}
vector<long int> g[200007];
bool sortbysec(const pair<int, int> &a, const pair<int, int> &b) {
  return (a.second < b.second);
}
void sober() {
  long int n, m, k, last = 0, zero = 0, one = 0;
  string s;
  cin >> s;
  n = s.length();
  for (long int i = 0; i < n; i++) {
    if (s[i] == '0')
      zero++;
    else
      one++;
  }
  if (!(one ^ n) || !(zero ^ n)) {
    cout << s.substr(1);
    return;
  }
  long int ind = -1;
  long int foo = 0, luffy = 0, ans = 0;
  for (long int i = 0; i < n; i++) {
    if (s[i] == '0' and !foo) {
      foo = 1;
      continue;
    }
    cout << s[i];
  }
}
signed main() {
  start();
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t = 1;
  while (t--) {
    sober();
  }
}
