Keven#8495

Keven

1 second
128 megabytes
Very hard

Consider a string of even length and an integer . The string is called -even if and only if the first half of the string differs from the second half in no more than positions.

For example, the string is -even, -even, but not -even.

You are given an integer and a cyclic string of odd length. You are to find its -even substring of maximal length. Note that the input string is cyclic, so you can use any of its cyclic shifts.

Input

The first line contains the integer (0 \leq k \leq 2000). The second line contains a string consisting of uppercase Latin letters. The length of the string is odd and does not exceed .

Output

Print a single line containing the -even substring of maximal length. If there are several such substrings, print the smallest in lexicographical order. If such a substring does not exist, print a blank line.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading

Example 3

Loading
Loading