Problem list
Log in
#coci00097 · COCI 2008/2009 Contest 5

Ljesnjak

Silver V 1.0 s 32 MB

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: Letter Characters č c= ć c-dž dz= ñ d-lj lj nj nj š s= ž z= For example, the word lj$es=nj$ak consists of six letters in the Croatian alphabet: lj, e, š, nj, a, k. Write a program that calculates the number of letters in the given word.

Input

The first line contains a string of at most $100$ characters. Only lowercase letters of the English alphabet and characters – and = will appear.

The string will represent a word encoded as described above.

Output

Output the number of letters in the input word.

Example 1

Input
dz=ak
Output
3

Example 2

Input
ljes=njak
Output
6
Source
COCI 2008/2009 Contest 5
Appears in
Not part of a ladder, contest or set yet.
Accepted 0 Submissions 2 Acceptance 0% Solvers 0

Discussion

Threads about this problem. Spoilers are collapsed; wrap hints in ||double bars||.

No discussion yet. Start a thread if something here needs explaining.

Recent submissions Open with filters
Code