Gats and the Uneven Purr String
Gats has tied a string across knots arranged from left to right. The knot at position has color .
Before jumping, Gats chooses exactly distinct knots uniformly at random from all subsets of knots. He then visits the chosen knots in increasing order of position.
Let the chosen positions be
For every satisfying , consider the three consecutive visited knots at positions , , and . Gats receives one fish at if both of the following conditions hold:
- the incoming jump is strictly shorter than the outgoing jump:
Gats's score is the total number of fish he receives. Find his expected score.
Input
The first line contains two integers and (), the number of knots and the number of knots Gats will visit.
The second line contains the string of length . Every character of is a lowercase English letter, and is the color of the knot at position .
Output
Print one integer: the expected number of fish Gats receives, modulo .
More precisely, if the expectation is written as a fraction with , print
Samples
Sample 1
Input
4 3 abcd
Output
250000002
Exactly one of the four equally likely selections gives Gats one fish. The expected score is , represented modulo as .