Codeforces Round 157 (Div. 2)
C
Little Elephant and Bits
Codeforces
未评级
原题
← BD →
翻译中…

The Little Elephant has an integer $*a*$, written in the binary notation. He wants to write this number on a piece of paper.

翻译中…

To make sure that the number $*a*$ fits on the piece of paper, the Little Elephant ought to delete exactly one any digit from number $*a*$ in the binary record. At that a new number appears. It consists of the remaining binary digits, written in the corresponding order (possible, with leading zeroes).

翻译中…

The Little Elephant wants the number he is going to write on the paper to be as large as possible. Help him find the maximum number that he can obtain after deleting exactly one binary digit and print it in the binary notation.

翻译中…

Input

翻译中…

The single line contains integer $*a*$, written in the binary notation without leading zeroes. This number contains more than $1$ and at most $10^{5}$ digits.

翻译中…

Output

翻译中…

In the single line print the number that is written without leading zeroes in the binary notation — the answer to the problem.

翻译中…

Note

翻译中…

In the first sample the best strategy is to delete the second digit. That results in number $11_{2} = 3_{10}$.

翻译中…

In the second sample the best strategy is to delete the third or fourth digits — that results in number $11010_{2} = 26_{10}$.

翻译中…

样例

Input #1
101
Output #1
11
InputCopy OutputCopy
Input #2
110010
Output #2
11010
InputCopy OutputCopy
题目信息
题号
259C
时间限制
2 s
内存限制
256 MB

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。