EasyRating 800
Does It Print?
In a joke language, only the commands H, Q and 9 print something; every other character does nothing. Print YES if the program prints anything.
Input
One line (the program).
Output
YES or NO.
Sample 1
Input
Hi!
Output
YES
Sample 2
Input
Codeforces
Output
NO
Output appears here