Mirko and Slavko are bored at math class again so they came up with new game. Mirko writes down an
Help him do that!
Input Specification
The first line of input contains integers
The following line contains
Output Specification
The first and only line of output should contain the largest possible number Slavko can obtain by
removing
Scoring
In test cases worth
Sample Input 1
Copy
4 2
1924
Sample Output 1
Copy
94
Sample Input 2
Copy
7 3
1231234
Sample Output 2
Copy
3234
Sample Input 3
Copy
10 4
4177252841
Sample Output 3
Copy
775841
Comments