#include <bits/stdc++.h>
using namespace std;
int btod(long long n) {
  int cnt = 0, g;
  for (int i = 0; n != 0; i++) {
    g = n % 10;
    n /= 10;
    cnt += g * pow(2, i);
  }
  return cnt;
}
int main() {
  string s;
  bool b = false;
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if (i == (s.size() - 1) && s[i] == '1' && b == false) {
      break;
    }
    if (b == true || s[i] == '1') {
      cout << s[i];
    } else {
      b = true;
    }
  }
  return 0;
}
