Problem7661--[CSES Problem Set] Creating Strings II

7661: [CSES Problem Set] Creating Strings II

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 256 MiB

Description

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≤n≤10^6$

Sample 1 Input

aabac

Sample 1 Output

20

HINT

相同题目:CSES 1715

Source/Category