| CodeRams Practice Problem Archive |
|---|
| Finished |
You define a string to be an alarming string if it contains exactly three "a" characters. Given a string, possibly containing spaces, figure out whether or not it is an alarming string.
The only line of input contains a single string $$$s$$$, consisting of only lowercase characters.
Output "YES" (no quotes) if the given string is an alarming string, as described above, and "NO" (no quotes) otherwise.
coderams competition number eleven
NO
aardvark
YES
an apple actually appeared
NO
| Name |
|---|


