In the mystical realm of Spellbound, a powerful wizard named JuPael has discovered a magical string that holds the key to creating powerful incantations. This string is composed of characters from the english alphabet. The wizards aim to find the largest segment of this string that can be rearranged to form a palindrome, a word that reads the same forwards and backwards.
Your task is to assist the wizards by determining the length of the longest contiguous segment of the string that can be rearranged into a palindrome.
The first line contains an integer $$$N$$$ ($$$1 \leq N \leq 10^6$$$), representing the length of the string. The second line contains the string $$$S$$$, composed of lowercase letters from the english alphabet.
Output a single integer representing the length of the largest segment that can be rearranged into a palindrome.
15abacabadabacaba
15
5abcde
1
10aaaaaaaaaa
10
| Название |
|---|


