Given a string consisting of characters. Define the function for the first characters of this string as follows: is the maximum possible value of such that the following strings are equal:
S_1 + S_2 + S_3 + \ldots + S_k,
S_i + S_{i-1} + S_{i-2} + \ldots + S_{i-k+1},
where S_j is the -th character of , and the sign denotes concatenation.
Write a program to compute the values of the function for the given string for all possible values of from to .
The first line contains one integer (1 \leq n \leq 200000).
The second line contains a string of length consisting of only uppercase and/or lowercase Latin letters.
Print integers — the values of the function A(1), A(2), \ldots, A(n).
Example 1