There is a game in which you try not to repeat a word while your opponent tries to see if you have repeated one.
Write a program to test a phrase.
The first line indicates the number of test cases. Each line of input is a line containing words separated by single spaces, where a word consists of one or more uppercase letters. A line contains no more than 80 characters.
On a separate line for each case, output "yes" if no word is repeated, and "no" if one or more words repeat.
3 THE RAIN IN SPAIN IN THE RAIN AND THE SNOW THE RAIN IN SPAIN IN THE PLAIN
yes no no