Mofusigil decides to test the wit of his old friend, Caiwen.
Mofusigil starts with a hidden original string of length $$$n$$$. He then performs exactly $$$m$$$ operations on it. In each operation, he selects a random position in the string and replaces the character at that position with a different lowercase English letter.
It is important to note that:
After performing these $$$m$$$ operations, Mofusigil shows Caiwen the final result string and asks: "Based on this final string, how many different original strings could I have started with?"
Mofusigil expected Caiwen to solve this instantly, but Caiwen stared at the string in total confusion. Seeing his friend's struggle, Mofusigil decided to go easy on him and guaranteed that the number of operations $$$m$$$ is very small: $$$m \le 2$$$.
Unfortunately, even with this simplification, Caiwen is completely stumped. Not wanting to lose face in front of Mofusigil, Caiwen has secretly asked for your help.
The first line contains two integers $$$n$$$ ($$$1 \le n \le 10^6$$$) and $$$m$$$ ($$$0 \le m \le 2$$$), denoting the length of the final string and the number of operations.
The second line contains the final string.
Print a number denoting the number of possible original strings.
4 1 momo
100
4 2 momo
3851