12132: Acmers Love AC

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:2 Solved:0

Description

We hate WA! We hate TLE! We hate RE! We hate PE......! The only thing we love is AC!Because we are ACMers! Now we give you a task that you should find how many strings―"AcmersLoveAc" are there in a string that we input.

Input

  The input contains several testcases. Each testcase consists of one string(only contains capital letter and Lowercase letter) which is at most 100 characters. Input is terminated by EOF.

Output

 For each testcase output, print an integer which stands for that how many strings―"AcmersLoveAc" are there in the input
string.

Sample Input Copy

IKnowAcmersLoveAc
AcmersDontLoveAc
AcmersLoveAcAndAcmersLoveAc

Sample Output Copy

1
0
2