Hide

Problem A
Certainly

Dr. Mehta, a professor of the Algorithms course at Colorado School of Mines, has recently observed an increase in students using generative AI to do their homework for them. He noticed that reports generated by AI tend to use certain words more than usual, especially the word “certainly”. Dr. Mehta wants your help spotting dubious submissions!

Given a student’s report, count the number of times the word “certainly” appears.

Input

The input consists of a single line containing a string $s$ ($10 \leq |s| \leq 10^{4}$), consisting only of lowercase English letters, spaces (‘ ’), and periods (‘.’).

Output

Print one integer, the number of times the word “certainly” appears in $s$.

Sample Input 1 Sample Output 1
certainly. i can help you with that.
1
Sample Input 2 Sample Output 2
hello world
0
Sample Input 3 Sample Output 3
certainlycertainlycertainlycertainly
4

Please log in to submit a solution to this problem

Log in