#include <bits/stdc++.h>
using namespace std;
int main() {
  char c;
  c = getchar();
  bool f = 0;
  while (c != '\n') {
    if (c == '1') {
      c = getchar();
      if (c == '\n' && f == 0) {
        return 0;
      }
      printf("1");
    } else {
      c = getchar();
      if (f) {
        printf("0");
      }
      f = 1;
    }
  }
  return 0;
}
