def checkio(words_set):
for wordP in words_set:
for wordS in words_set:
if wordP != wordS and wordP.endswith(wordS):
return True
return False
#These "asserts" using only for self-checking and not necessary for auto-testing