The bank "Westville" is introducing a new type of bank card. For this, identical blank cards are produced, each with a special place for customer identification. Initially, the code number is written in this place. The bank has a special device that allows some digits of to be erased. The remaining digits, when written in order, form a customer's account number. For example, if X = 12013456789, account numbers , , , or can be obtained, while numbers or cannot.
Account numbers in the bank are assigned sequentially: , , . It is clear that with this method, at some point there will be an account number that cannot be obtained from the digits of in the manner described above. The bank management wants to know the value of .
Write a program to find for the given .
The positive integer (1 \leq X < 10^{1000}) without leading zeroes.
Print the value of without leading zeroes.
Example 1