407247: GYM102709 C Professor Moody
Description
It's the first couple weeks of school and one of your professors, Professor Moody, has left you some feedback on your first assignment. Unfortunately, he tends to ramble and isn't the most coherent (some of his feedback seems like he just copied and pasted Dr. Seuss poems?!). Given a list of positive and negative words, you want to create a program that determines if his text is positive or negative by counting positive and negative words.
If there are more positive words than negative then his feedback is positive. If there are more negative words than positive then his feedback is negative. Finally, if there are an equal number of positive and negative words, then his feedback is perfectly neutral. Some words in the feedback are not positive or negative and do not need to be counted.
InputThe first line of input will contain an integer $$$P$$$, the number of positive words to follow.
The following $$$P$$$ lines of input will each contain a word determined to be positive.
The next line of input will contain an integer $$$N$$$, the number of negative words to follow.
The following $$$N$$$ lines of input will each contain a word determined to be negative.
The next line of input will contain an integer $$$W$$$, the number of words in Professor Moody's feedback.
The next $$$W$$$ lines will each contain a string that represents the next word in Professor Moody's feedback.
$$$1 \leq P \leq 100$$$
$$$1 \leq N \leq 100$$$
$$$1 \leq W \leq 1000$$$
OutputPrint either Positive, Negative, or Neutral based on the tone of Professor Moody's feedback as defined above.
ExamplesInput5 great happy congratulations smart care 5 worry dont bad worst terrible 17 congratulations this was the worst paper ever bad job oh the places you will go terrible workOutput
NegativeInput
4 great happy good terrific 5 worry not bad worst terrible 18 this was a great paper one fish two fish red fish blue fish terrific work elephants not badOutput
Neutral