CSE Programming Club of Comilla University was created for the betterment of the students of Computer Science and Engineering department. Since then, it has helped programmers of the department in various ways possible. Arranging programming contests, training sessions, discussion sessions along with LAB facilities are to name a few. Following the tradition, the club is here with yet another programming contest for you to test your programming skills. In this problem, you’ll have to answer several test cases. In each case, you’ll be given a non-empty string containing English letters A-Z, a-z, spaces and special characters ( comma ( , ) and dot ( . ) ). You have to answer if you can obtain the string "Programming Club, CSE CoU." (without quotes), by taking characters from the input string.
Input starts with an integer T, the number of test cases. In each case, you’ll be given a non-empty string of characters.
1 ≤ T ≤ $ 10^{5} $
sum of characters over all test cases does not exceed $ 10^{6} $
.
Print “YES” if you can obtain the string "Programming Club, CSE CoU."(without quotes) By taking characters from the input string, otherwise print “NO”.
Input | Output |
---|---|
2 Programming Club is created by CSE Society, CoU. Programming Club helps Programmers a lot. | YES NO |