You are given a string $$$s$$$, consisting of $$$n$$$ lowercase Latin letters. You would like to find its key anagram of order $$$k$$$. A key anagram of order $$$k$$$ is the lexicographically smallest string $$$t$$$ of length $$$k$$$, which is obtained from some substring of the original string $$$s$$$ by rearranging its letters. In other words, the key anagram of order $$$k$$$ is the lexicographically smallest anagram of some substring of length $$$k$$$ of the original string $$$s$$$.
We remind you that a string $$$a$$$ is lexicographically smaller than a string $$$b$$$ if and only if one of the following conditions holds:
The first line contains two integers $$$n$$$ and $$$k$$$ ($$$1 \le k \le n \le 10^{6}$$$) – the length of the string and the size of the required substring.
The second line contains $$$s$$$.
Print the string $$$t$$$ – the key anagram of order $$$k$$$.
10 3teamspirit
aem
16 5gaminggladiators
aadil