A string is colorful if every letter appears at most once in the string.
Given a string, count with multiplicity the number of subsequences which are colorful.
Constraints
Input Specification
The input is a string
Output Specification
Output the number of colorful subsequences modulo
Sample Input
Copy
dmoj
Sample Output
Copy
16
Comments