Certainly

면접 대비

시간 제한1초메모리 제한2048 MB

요약
주어진 문자열에서 "certainly"라는 단어가 부분 문자열로 몇 번 나타나는지 센다.
난이도

쉬움10점 중 3점

유형
문자열, 문자열 매칭, 구현
정답자
아직 제출이 없습니다

문제

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.

입력

The input consists of a single line containing a string ss (10≤∣s∣≤10410 \leq |s| \leq 10^{4}), consisting only of lowercase English letters, spaces (' '), and periods ('.').

출력

Print one integer, the number of times the word "certainly" appears in ss.

예제3

  1. 예제 1

    입력
    certainly. i can help you with that.
    
    예상 출력
    1
    
  2. 예제 2

    입력
    hello world
    
    예상 출력
    0
    
  3. 예제 3

    입력
    certainlycertainlycertainlycertainly
    
    예상 출력
    4