Given a string made up of only lowercase letters, and a natural number , remove any substring of length from so that the result is the lexicographically smallest possible word.
Input consists of several cases, each with and . Assume .
For every case, print the alphabetically smallest word that can be obtained after removing consecutive letters from .
Input
abba 1 abba 2 abba 3 zxazyzy 3
Output
aba aa a zxay