#GD0000012. Chú voi con và các bit (Little Elephant and Bits)

Chú voi con và các bit (Little Elephant and Bits)

Little Elephant and Bits

Source: Codeforces

Version: Phuoc Hung OJ Extended

Problem Statement

Given the binary representation of a positive integer with no leading zero and at least two digits, delete exactly one bit while preserving the order of all remaining bits. Produce the largest possible binary number.

Input

One line contains a binary string ss, with 2≤∣s∣≤1052 \le |s| \le 10^5.

Output

Print the largest binary string obtainable after deleting exactly one bit.

Subtasks

General constraints:

  • 2≤∣s∣≤1052 \le |s| \le 10^5.

  • ss contains only 0, 1, and starts with 1.

  • Subtask 1 (20 points): ∣s∣≤20|s| \le 20

  • Subtask 2 (30 points): ∣s∣≤5000|s| \le 5000

  • Subtask 3 (50 points): No additional constraints.

Examples

Input

110010

Output

11010

Explanation

Deleting the first 0, at the third position, gives 11010. Deleting an earlier 1 would make the prefix smaller.