Finding DKSH
Time limit1sMemory limit1024 MB
Count the occurrences of the substring DKSH in a string of at most 1,000 characters made of D, K, S, and H.
- Level
Easy1 of 10
- Topics
- String, String matching
- Solved
- No attempts yet
Problem

DKSH is the school logo, an abbreviation of Dankook University Software High School.
You are given a string made only of the characters D, K, S, and H. Count how many times DKSH appears in this string.
Input
The first line contains the string. The length of the string does not exceed .
Output
Print the number of times DKSH appears in the input string on the first line.