Time limit: 1.0s
Memory limit: 32M
Not so long ago, before operating systems were as powerful as they are today, computers (which often had turbo buttons on the exterior) couldn't handle certain letters of the Croatian alphabet. Programmers agreed to use two or three-letter substitutions as in this table:
For example, the word
ljes=njak consists of six letters in the Croatian alphabet:
Write a program that calculates the number of letters in the given word.
The first line contains a string of at most 100 characters. Only lowercase letters of the English alphabet
= will appear.
The string will represent a word encoded as described above.
Output the number of letters in the input word.
Sample Input 1
Sample Output 1
Sample Input 2
Sample Output 2