#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  cin >> str;
  long long int pos = -1;
  long long int c = 0;
  for (long long int i = 0; i < str.length(); i++)
    if (str[i] == '0') {
      c++;
      break;
    }
  if (c == 0) {
    for (long long int i = 1; i < str.length(); i++) cout << str[i];
    return 0;
  }
  for (long long int i = 0; i < str.length(); i++)
    if (str[i] == '1')
      cout << str[i];
    else {
      if (pos == -1) {
        if (str[i] == '0')
          if (i - 1 >= 0)
            if (str[i - 1] == '1') {
              pos = i;
              continue;
            }
      } else
        cout << str[i];
    }
  return 0;
}
