#abc211c. [abc211_c]chokudai
[abc211_c]chokudai
Problem Statement
You are given a string .
How many ways are there to choose and underline eight of its characters so that those characters read c
, h
, o
, k
, u
, d
, a
, i
from left to right?
Since the count can be enormous, print it modulo .
Constraints
- consists of lowercase English letters.
Input
Input is given from Standard Input in the following format:
Output
Print the number of ways modulo .
Sample Input 1
chchokudai
Sample Output 1
3
We have three valid ways:
chchokudai
chchokudai
chchokudai
while the following is invalid:
chchokudai
Sample Input 2
atcoderrr
Sample Output 2
0
The answer may be .
Sample Input 3
chokudaichokudaichokudai
Sample Output 3
45