Input
The input is a string containing only lowercase English letters.
Output
Output a non-negative integer representing the answer.
Constraints
Example 1
Input
lms
0
Example 2
Input
child
1
Example 3
Input
contest
2
Example 4
Input
talent
2
Comments