Points:
1400 (p)
Time limit:
1.0s
Memory limit:
512M
Input:
stdin
Output:
stdout
Given a string, your task is to calculate the number of different strings that can be created using its characters.
Input
- The only input line has a string of length \(n\). Each character is between
a
-z
.
Output
- Print the number of different strings modulo \(10^9+7\).
Constraints
- \(1\leq n\leq 10^6\)
Example
Sample input
aabac
Sample output
20
Comments