#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, i = 0;
  string s;
  cin >> s;
  if (s.size() == 1) {
    cout << " ";
    return 0;
  }
  while (s[i] != '0') {
    if (i + 1 == s.size()) return 0;
    cout << s[i];
    i++;
  }
  for (int j = i + 1; j < s.size(); j++) cout << s[j];
  return 0;
}
