#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  char arr[100001];
  memset(arr, '\0', sizeof(char) * 100001);
  bool found = false;
  for (int i = 0; i < s.length(); i++)
    if (s[i] == '0') {
      s[i] = 'X';
      found = true;
      break;
    }
  if (!found) s[s.length() - 1] = 'X';
  int index = 0;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == 'X')
      continue;
    else
      arr[index++] = s[i];
  }
  cout << arr << endl;
  return 0;
}
