There is a game in which you try not to repeat a word while your opponent tries to see if you have repeated one.
"THE RAIN IN SPAIN" has no repeats.
"IN THE RAIN AND THE SNOW" repeats THE.
"THE RAIN IN SPAIN IN THE PLAIN" repeats THE and IN.
Write a program to test a phrase.
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.
The output is "yes" if no word is repeated, and "no" if one or more words repeat.
THE RAIN IN SPAIN
IN THE RAIN AND THE SNOW
THE RAIN IN SPAIN IN THE PLAIN
Kuna mchezo ambapo wewe hujaribu kutorudia neno wakati mpinzani wako anajaribu kuona kama umerudia moja. "Mvua Katika Hispania" haina marudio. "Katika Mvua na Theluji" inarudia The. "Mvua katika Hispania katika Plain" mara kwa mara The na IN. Andika programu ya kupima usemi. Input ni mstari wenye maneno kutenganishwa na nafasi moja, ambapo neno lina moja au zaidi ya herufi kubwa. Mstari mmoja wa maandishi hauwezi kuwa na zaidi ya herufi 80. Matokeo ni "ndiyo" kama hakuna neno linarudiwa, na "hapana" kama neno moja au zaidi linarudiwa. Mvua na theluji katika Hispania