Count Code

View as PDF

Submit solution

Points: 2
Time limit: 2.0s
Memory limit: 128M

Author:
Problem type

Print the number of times that the string code appears anywhere in the given string, but there's a twist. Any letter except for 'd' in code will also count, so cope and cooe will also satisfy the conditions.

Input Specification

The only line of input will be a single string.

Output Specification

Print the number of times code or any other variation of the word appears in the string.

Sample Input

codexxcope

Sample Output

2

Comments

There are no comments at the moment.