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 on a single line consisting of only lowercase letters.
Output Specification
Output the number of colorful subsequences modulo .
Sample Input
dmoj
Sample Output
16
Comments