You are given a string consisting of lowercase alphabets. A good subsequence of this string is a subsequence which contains distinct characters only.
Determine the number of good subsequences of the maximum possible length modulo .
In other words, determine the length of the longest good subsequence and the number of good subsequences of length modulo .
Input format
Output format
For each test case, print the number of good subsequences of the maximum length modulo .
Answer for each test case should come in a new line.
Input Constraints
In the first testcase, any one of the can be chosen. Hence there are good subsequences of maximum length.
In the second testcase, the maximum length of a good subsequence is . There are such subsequences (listed by indices):
In the third testcase, the maximum length of a good subsequence is and there is only such subsequence.