I actually [expletive] failed a quiz I knew all the answers to ~ Victor, 2019
Victor is being quizzed on an array of different subjects! However, Victor has a fatal flaw: he does poorly on quizzes on the subjects he knows well. Given that Victor excels at math and computer science, help him determine if he will fail these quizzes!
The first line will contain ~N~ ~(N \le 10)~, the number of quizzes that Victor must write.
The subjects present on the ~i~th quiz are given as a string of distinct uppercase English letters ~S_i~, with ~|S_i| \le 5~.
The ~i~th quiz will have math on it if the character
M is in ~S_i~ and it will have computer science on it if the character
C is in ~S_i~.
For each quiz, you must output one of three possible outcomes on a new line:
PASSif the quiz contains neither math nor computer science.
FAILif the quiz contains one of math or computer science.
NEGATIVE MARKSif the quiz contains both math and computer science.
4 MXACY CZBNP PQRST PQRMS
NEGATIVE MARKS FAIL PASS FAIL
Explanation of Sample Input
The first quiz contains both
C, so the answer is
NEGATIVE MARKS. Quiz 2 contains
C but not
M, and quiz 4 contains
M but not
C so the answer to both is
FAIL. Quiz 3 contains neither
C so the answer is