A. The king is "Z"

Revision en2, by mzaferbooshi96, 2024-11-27 21:32:25

Ahmed loves the letter "Z" very much, and he loves the number of "Z" letters in each string s.

Input The first line of input contains string s.

Output Print an integer representing the number of occurrences of the letter "Z". If there is no "Z", type "NO" without the quotes. examples: input: zzzz

output: 4

input: codeforces

output: NO

Tags iplementaition

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English mzaferbooshi96 2024-11-27 21:34:29 12
en2 English mzaferbooshi96 2024-11-27 21:32:25 0 Tiny change: '\ninput:\ncodeforc' -> '\ninput:\n\ncodeforc'
en1 English mzaferbooshi96 2024-11-27 21:28:33 386 Initial revision (published)