Cookie Monster

View as PDF

Submit solution

Points: 5
Time limit: 2.0s
Memory limit: 64M

Author:
Problem type

Cookie Monster like cookie. Cookie Monster want cookie. Cookie Monster have String S of all lowercase letters. Tell Cookie Monster how many characters in S are one of the letters in "cookie".

Constraints

|S|\le 5000

Input Specification

The first and only line contains the string S.

Output Specification

One line with one integer, the number of characters in S that are one of the letters in "cookie".

Sample Input

cracker

Sample Output

4

Sample Explanation

The first (c), fourth (c), fifth (k), and sixth (e) letters are contained in "cookie". So, there are 4 characters in S that are one of the letters in "cookie".


Comments

There are no comments at the moment.