#t364. 删数问题
删数问题
Digit Deletion
Problem Description
A high-precision positive integer (at most digits) is entered from the keyboard. After deleting any of its digits, the remaining digits, in their original left-to-right order, form a new non-negative integer. For the given and , find a scheme that makes the new number formed by the remaining digits as small as possible.
Input Format
Two lines of positive integers.
The first line is the high-precision positive integer .
The second line is a positive integer , the number of digits to delete.
Output Format
One integer: the smallest remaining number.
Sample Input
175438
4
Sample Output
13
Constraints
Let denote the number of digits of . It is guaranteed that .