100 atcoder#ABC211C. [ABC211C] chokudai

[ABC211C] chokudai

Score : 300300 points

Problem Statement

You are given a string SS. 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 (109+7)(10^9 + 7).

Constraints

  • 8S1058 \leq |S| \leq 10^5
  • SS consists of lowercase English letters.

Input

Input is given from Standard Input in the following format:

SS

Output

Print the number of ways modulo (109+7)(10^9 + 7).

chchokudai
3

We have three valid ways:

chchokudai chchokudai chchokudai

while the following is invalid:

chchokudai

atcoderrr
0

The answer may be 00.

chokudaichokudaichokudai
45