Given a string S, count the number of non-contiguous subsequences of S that form the string marisa.
### Input
- A single line containing the string S.
### Output
- Output a single integer representing the number of non-contiguous subsequences of S that form the string marisa, modulo 109+7.
### Constraints
- 1≤|S|≤105
### Example
Input:
marisa
Output:
1