#include <bits/stdc++.h>
using namespace std;
const int INF = 2147483647;
const long long LLINF = 9223372036854775807LL;
int main() {
  bool was = false;
  string s;
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == '0' && !was) {
      was = true;
      continue;
    }
    if (i == s.size() - 1 && !was) continue;
    cout << s[i];
  }
  return 0;
}
