#P15927. [TOPC 2023] Kick
[TOPC 2023] Kick
Problem Description
You are given a string consisting of lowercase English letters. A “kick” is defined as a substring of that starts with the letter ‘k’ followed by the letter ‘i’ followed by the letter ‘c’ followed by the letter ‘k’.
Your task is to count the number of distinct “kicks” in the string . Note that the kicks can overlap.
Input Format
The input contains exactly a string consisting of lowercase English letters.
Output Format
Print the number of “kicks” on a line.
kickickstartkicks
3
kickkickkickkick
4
Hint
The length of the string is no more than .